swig/Examples/test-suite/javascript
William S Fulton e8d3c74590 Improvements to $typemap() special variable replacement overrides
In $typemap(), the $n special variables are replaced by the appropriate
value for the type associated with the typemap calling $typemap().
The (undocumented) special variable overrides now also support
controlling what the $n special variables are replaced with from the
calling typemap, for example:

  %typemap(in) std::pair<std::string, int> {
    int& input_value_second = $1.second;
    $typemap(in, int, 1=input_value_second);
    ...
  }

replaces $1 in the int typemap with input_value_second instead of
whatever is the default for the target language (a variable that holds
the int value after marshalling from the target language).

This additional functionality might make it possible to replace the C++
templates used in the UTL with a much simpler system of typemaps utilising
$typemap(). See follow on commit to typemaps.c.
2023-11-03 09:07:51 +00:00
..
node_template Javascript Node-API support added 2023-06-28 07:24:51 +01:00
Makefile.in Correct attempts to not run tests in Javascript and Octave 2023-08-14 22:54:40 +01:00
abstract_access_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
abstract_inherit_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
abstract_typedef2_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
abstract_typedef_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
abstract_virtual_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
argcargvtest_runme.js argcargv.i: NULL terminate argv with empty input 2023-05-23 10:12:49 +12:00
array_member_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
arrays_global_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
callback_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
catches_strings_runme.js Javascript Node-API support added 2023-06-28 07:24:51 +01:00
char_binary_runme.js Make (char*, size_t) typemap usable for strings of other types in Java. 2015-08-07 19:44:45 +02:00
char_strings_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
class_ignore_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
class_scope_weird_runme.js Add Javascript test for missing new in constructor call 2021-02-28 22:01:32 +00:00
complextest_runme.js Fix C# std::complex pass by value typemaps 2017-10-02 19:07:24 +01:00
constant_directive_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
constover_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
constructor_copy_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
cpp11_alternate_function_syntax_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_decltype_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_final_class_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_initializer_list_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_move_only_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_move_typemaps_runme.js Provide SWIGTYPE MOVE typemaps in swigmove.i 2022-09-16 08:36:25 +01:00
cpp11_null_pointer_constant_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_ref_qualifiers_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_ref_qualifiers_rvalue_unignore_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_result_of_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_rvalue_reference_move_runme.js rvalue reference outputs 2022-09-08 08:46:32 +01:00
cpp11_rvalue_reference_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_std_unique_ptr_runme.js Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
cpp11_strongly_typed_enumerations_runme.js Add c++11 strongly typed enums runtime test for Javascript 2014-12-02 19:59:59 +00:00
cpp11_thread_local_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp11_using_typedef_struct_runme.js Tweak to struct name in testcase for R 2023-05-06 15:09:07 +01:00
cpp11_variadic_function_templates_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp14_binary_integer_literals_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp17_hex_floating_literals_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp17_nested_namespaces_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp17_u8_char_literals_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp20_spaceship_operator_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
cpp_enum_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
cpp_namespace_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
cpp_static_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
default_arg_values_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
default_args_c_runme.js remove hacks and implement default arguments 2023-05-31 13:22:35 +02:00
default_args_runme.js remove hacks and implement default arguments 2023-05-31 13:22:35 +02:00
director_alternating_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
disown_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
dynamic_cast_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
empty_c_runme.js Duplicate tests that are run twice as both C and C++ tests to fix parallel make: empty 2016-02-21 18:03:14 +00:00
empty_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
enum_template_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
enums_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
exception_classname_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
extend_placement_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
extend_template_method_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
extend_template_ns_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
extend_template_runme.js Add missing newlines at end on new files 2023-05-29 12:45:57 +12:00
extend_variable_runme.js Add missing newlines at end on new files 2023-05-29 12:45:57 +12:00
extern_c_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
final_c_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
friends_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
funcptr_cpp_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
functors_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
fvirtual_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
global_functions_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
global_namespace_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
global_ns_arg_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
global_vars_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
grouping_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
iadd_runme.js [js] Add _runme.js files for ynit tests that pass 2023-05-22 08:18:31 +12:00
ignore_parameter_runme.js take into account numinputs when counting arguments 2023-04-26 18:23:53 +02:00
import_nomodule_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
inctest_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
infinity_runme.js Fix infinity testcase on windows 2014-05-29 07:50:21 +01:00
inherit_missing_runme.js Add two Javascript testcases converted from Python 2021-03-11 20:10:18 +00:00
inplaceadd_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
input_runme.js add more JS run tests 2023-05-26 16:50:24 +02:00
integers_runme.js add tests for new casting behavior 2022-10-10 13:28:44 +02:00
javascript_lib_arrays_runme.js Convert javascript_arrays.i example into testcase 2021-03-06 10:55:47 +00:00
keyword_rename_c_runme.js add a missing rename 2023-05-27 17:44:02 +02:00
keyword_rename_runme.js try using finally as JS keyword 2023-05-27 17:31:59 +02:00
langobj_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_attribute_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_attribute_template_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_carrays_cpp_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_carrays_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_cdata_cpp_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_cdata_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_cmalloc_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_constraints_runme.js Add li_constraints test, testing 'constraints.i'. 2023-05-12 01:23:31 +02:00
li_cpointer_cpp_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_cpointer_runme.js first batch of tests 2023-05-29 12:39:51 +02:00
li_factory_runme.js add two Python tests 2023-05-29 12:42:59 +02:00
li_std_auto_ptr_runme.js Javascript Node-API support added 2023-06-28 07:24:51 +01:00
li_std_containers_int_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_std_map_member_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_std_map_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_std_pair_runme.js Javascript Node-API support added 2023-06-28 07:24:51 +01:00
li_std_pair_using_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_std_vector_enum_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_std_vector_runme.js another batch of run tests 2023-05-29 17:18:43 +02:00
li_typemaps_runme.js OUTPUT typemaps on methods that don't return void 2021-03-01 14:20:18 +00:00
member_pointer_const_runme.js fix JSC too 2023-05-29 21:02:42 +02:00
member_pointer_runme.js fix member pointers 2023-05-29 20:17:31 +02:00
memberin_extend_c_runme.js fix member pointers 2023-05-29 20:17:31 +02:00
multivalue_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
name_warnings_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
namespace_class_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
namespace_typemap_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
namespace_virtual_method_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
native_directive_runme.js Dev Checkpoint 201906252113 2019-06-25 21:13:49 -06:00
naturalvar_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
nested_in_template_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
nested_template_base_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
nested_workaround_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
not_c_keywords_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
nspace_extend_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
nspace_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
null_pointer_runme.js Rename func to funk in tests to avoid Go keyword problems 2017-06-16 19:24:48 +01:00
operator_overload_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
operbool_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_bool_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_complicated_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_copy_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
overload_extend2_runme.js add overload + extend + default args run test 2023-05-31 15:42:13 +02:00
overload_extend_c_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_extend_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_null_runme.js Shorten testcase variable names for Scilab 6 to work 2021-11-15 22:45:56 +00:00
overload_simple_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_template_fast_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
overload_template_runme.js add more JS run tests 2023-05-30 20:12:55 +02:00
pointer_reference_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
preproc_cpp_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
preproc_defined_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
preproc_gcc_output_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
preproc_include_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
preproc_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
primitive_ref_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
profiletest_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
reference_global_vars_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
rename1_runme.js testcase fixes for gcc-9 2019-04-15 23:25:53 +01:00
rename2_runme.js testcase fixes for gcc-9 2019-04-15 23:25:53 +01:00
rename3_runme.js testcase fixes for gcc-9 2019-04-15 23:25:53 +01:00
rename4_runme.js testcase fixes for gcc-9 2019-04-15 23:25:53 +01:00
rename_pcre_encoder_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
rename_predicates_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
rename_rstrip_encoder_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
rename_scope_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
rename_simple_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
rename_strip_encoder_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
ret_by_value_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
return_const_value_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_member_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_multi_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_multi_typedef_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_not_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_rename_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_simple_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_templatevariables_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
smart_pointer_typedef_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
sneaky1_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
special_variable_macros_runme.js Improvements to $typemap() special variable replacement overrides 2023-11-03 09:07:51 +00:00
static_const_member_2_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
string_simple_runme.js [OCaml] Fix and re-enable the string_simple, minherit, and unions tests 2019-01-13 17:28:00 -07:00
struct_initialization_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
struct_rename_runme.js batch of JS run tests 2023-05-31 18:46:34 +02:00
struct_value_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
swig_exception_runme.js [Javascript] Fix SWIG_exception() macro (#792) 2016-09-17 17:29:42 +12:00
template_class_reuse_name_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_classes_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_construct_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_default_arg_overloaded_extend_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_default_arg_overloaded_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_default_arg_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_default_cache_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_extend1_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_extend2_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_inherit_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_ns4_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_ns_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_opaque_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_ref_type_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_rename_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_static_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
template_tbase_template_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_template_parameters_runme.js fix the JSC incompatibilities 2023-06-01 13:47:39 +02:00
template_type_namespace_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_typedef_cplx2_runme.js fix the JSC incompatibilities 2023-06-01 13:47:39 +02:00
template_typedef_cplx3_runme.js fix the JSC incompatibilities 2023-06-01 13:47:39 +02:00
template_typedef_cplx4_runme.js fix the JSC incompatibilities 2023-06-01 13:47:39 +02:00
template_typedef_cplx_runme.js fix the JSC incompatibilities 2023-06-01 13:47:39 +02:00
template_typemaps_typedef2_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_typemaps_typedef_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
template_using_directive_typedef_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typedef_class_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
typedef_classforward_same_name_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typedef_funcptr_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typedef_inherit_runme.js Polymorphism in R wrappers fixed for C++ structs 2022-10-24 08:56:55 +01:00
typedef_scope_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
typedef_typedef_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typemap_arrays_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
typemap_delete_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
typemap_documentation_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typemap_namespace_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
typemap_ns_using_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
typemap_out_optimal_runme.js Remove trace output from Javascript testcase 2023-06-28 07:30:40 +01:00
typemap_qualifier_strip_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typemap_template_typedef_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
typename_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
types_directive_runme.js Javascript type conversion support 2021-03-11 20:10:13 +00:00
unicode_strings_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
using1_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
using2_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
using_private_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
using_protected_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
varargs_overload_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
varargs_runme.js Allow examples and test-suite to be built out of source tree 2014-05-11 23:21:10 +02:00
virtual_derivation_runme.js Add two Javascript testcases converted from Python 2021-03-11 20:10:18 +00:00
virtual_poly_runme.js add the last bulk batch of Python tests to JS 2023-06-01 13:29:05 +02:00
voidtest_runme.js [Javascript] Fix handling of functions which take void* 2022-03-07 14:17:52 +13:00