swig/Examples/test-suite/ocaml
Zackery Spytz e5b8b5a164 [OCaml] Some exception improvements
The OCaml module's exception handling code was poorly designed,
gave confusing exception messages, and was vulnerable to buffer
overflows.

The OCaml module's SWIG_exception_() was adding a useless newline to
the end of the exception message.

In some cases, the integer value of f.e. SWIG_TypeError was being added
to the exception message.

The unneeded else in the OCaml module's SWIG_contract_assert() macro
was causing -Wmisleading-indentation warnings.

The OCaml module's exception handling code now mirrors that of the
Java module.

Add Lib/ocaml/std_except.i.
Add multiple runtime tests.
2019-02-07 16:25:10 -07:00
..
abstract_access_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
abstract_typedef2_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
abstract_typedef_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
abstract_virtual_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
aggregate_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
allowexcept_runme.ml [OCaml] Fix %allowexception 2019-01-22 07:51:45 -07:00
cast_operator_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
catches_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
char_binary_runme.ml [OCaml] Fix the char_binary test for OCaml 2019-01-29 09:18:30 -07:00
char_constant_runme.ml [OCaml] Fix the wrapping of static const member chars 2019-01-15 16:37:26 -07:00
chartest_runme.ml [OCaml] Fix the wrapping of static const member chars 2019-01-15 16:37:26 -07:00
class_ignore_runme.ml
class_scope_weird_runme.ml [OCaml] class_scope_weird, cpp_static, and ignore_parameter runtime tests 2019-01-11 19:35:17 +00:00
constover_runme.ml [OCaml] Runtime tests for abstract_access, abstract_typedef and some others 2019-01-11 22:26:11 -07:00
constructor_rename_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
conversion_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
cpp_nodefault_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
cpp_static_runme.ml [OCaml] class_scope_weird, cpp_static, and ignore_parameter runtime tests 2019-01-11 19:35:17 +00:00
director_exception_catches_runme.ml [OCaml] Fix handling of exception specifications for director classes 2019-01-26 05:58:38 -07:00
director_exception_nothrow_runme.ml [OCaml] Fix handling of exception specifications for director classes 2019-01-26 05:58:38 -07:00
director_exception_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
director_ignore_runme.ml [OCaml] Fix handling of exception specifications for director classes 2019-01-26 05:58:38 -07:00
exception_classname_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
exception_order_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
extend_constructor_destructor_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
extend_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
extend_special_variables_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
extend_template_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
extend_typedef_class_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
extern_c_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
fvirtual_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
global_ns_arg_runme.ml [OCaml] Runtime tests for constructor_rename, cpp_nodefault and some others 2019-01-13 22:44:31 -07:00
ignore_parameter_runme.ml [OCaml] class_scope_weird, cpp_static, and ignore_parameter runtime tests 2019-01-11 19:35:17 +00:00
imports_runme.ml
inctest_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
li_cpointer_cpp_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
li_std_except_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
li_std_vector_runme.ml OCaml's classHandler() requires name, not sym:name. 2019-01-08 20:10:07 -07:00
makedebugtop Remove execute permissions from various non-executable files 2014-05-02 20:06:11 +02:00
Makefile.in Merge branch 'ZackerySpytz-OCaml-director-classes-throw' 2019-01-31 07:21:50 +00:00
minherit_runme.ml
name_runme.ml
namespace_virtual_method_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
newobject1_runme.ml
newobject2_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
overload_bool_runme.ml [OCaml] Fix the handling of bools in overloaded functions 2019-01-18 23:42:59 -07:00
overload_copy_runme.ml
overload_extend_runme.ml [OCaml] Fix dead code generation in overloaded function wrappers 2019-01-16 20:00:40 -07:00
overload_method_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
overload_numeric_runme.ml [OCaml] Some %typecheck precedence tweaks 2019-01-21 23:17:43 -07:00
overload_polymorphic_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
overload_rename_runme.ml [OCaml] Fix dead code generation in overloaded function wrappers 2019-01-16 20:00:40 -07:00
overload_subtype_runme.ml [OCaml] Fix dead code generation in overloaded function wrappers 2019-01-16 20:00:40 -07:00
README
sneaky1_runme.ml
special_variable_macros_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
special_variables_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
static_const_member_runme.ml [OCaml] Fix the wrapping of static const member chars 2019-01-15 16:37:26 -07:00
string_simple_runme.ml [OCaml] Fix and re-enable the string_simple, minherit, and unions tests 2019-01-13 17:28:00 -07:00
struct_value_runme.ml [OCaml] Fix member var getters and setters 2019-01-06 09:40:25 -07:00
swig_exception_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
template_extend1_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
template_extend2_runme.ml [OCaml] Runtime tests for inctest, li_cpointer_cpp and some others 2019-01-22 22:50:40 -07:00
template_opaque_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
template_rename_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
throw_exception_runme.ml [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
typedef_class_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
typedef_inherit_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
typedef_mptr_runme.ml
typemap_arrays_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
typemap_delete_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
typename_runme.ml
types_directive_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
unions_runme.ml [OCaml] Fix and re-enable the string_simple, minherit, and unions tests 2019-01-13 17:28:00 -07:00
using1_runme.ml [OCaml] Runtime tests for fvirtual, overload_polymorphic and some others 2019-01-17 15:58:48 -07:00
using_extend_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
using_inherit_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
using_pointers_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
using_private_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
using_protected_runme.ml [OCaml] Re-enable the using_protected unit test 2019-01-11 17:59:23 -07:00
valuewrapper_runme.ml [OCaml] Runtime tests for overload_method, typedef_class and some others 2019-01-20 23:08:03 -07:00
varargs_overload_runme.ml [OCaml] Runtime tests for template_opaque, using_extend and some others 2019-01-27 06:50:51 -07:00
varargs_runme.ml
voidtest_runme.ml

I stole most of these runme's from the ruby runme scripts, since the current
ocaml interface mirrors the ruby interface in many ways.