Fix types_directive testcase to ensure the %types code is actually called and not just cast from one type to the other.
20 lines
577 B
Text
20 lines
577 B
Text
/* -----------------------------------------------------------------------------
|
|
* javascriptruntime.swg
|
|
*
|
|
* Javascript support code
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
%insert(runtime) %{
|
|
#include <JavaScriptCore/JavaScript.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <limits.h>
|
|
#include <assert.h>
|
|
%}
|
|
|
|
%insert(runtime) "swigrun.swg"; /* SWIG API */
|
|
%insert(runtime) "swigerrors.swg"; /* SWIG errors */
|
|
|
|
%insert(runtime) "javascriptrun.swg"; /* SWIG errors */
|