diff options
author | Mark Gossage <mark@gossage.cjb.net> | 2006-10-14 07:15:52 +0000 |
---|---|---|
committer | Mark Gossage <mark@gossage.cjb.net> | 2006-10-14 07:15:52 +0000 |
commit | 5149b7b4f3dfc1faf486179267719e11585a5845 (patch) | |
tree | 302136a4617338228af18803f347fa2a10da89dc /Lib/lua/lua_fnptr.i | |
parent | eb6d0b5c022e47402eab612e1bea3db3bd23788a (diff) | |
download | swig-5149b7b4f3dfc1faf486179267719e11585a5845.tar.gz |
fixed several test cases
added long long support
changed typemaps to use SWIG_ConvertPtr rather than SWIG_MustGetPointer
started spliting lua.swg into smaller parts to make it neater
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/lua/lua_fnptr.i')
-rw-r--r-- | Lib/lua/lua_fnptr.i | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/lua/lua_fnptr.i b/Lib/lua/lua_fnptr.i index 274f4784e..c7df6f5a3 100644 --- a/Lib/lua/lua_fnptr.i +++ b/Lib/lua/lua_fnptr.i @@ -31,10 +31,10 @@ just push the parameters, call the function and return the result. lua_call(fn.L,2,1); // 2 in, 1 out return luaL_checknumber(fn.L,-1); } - + SWIG will automatically performs the wrappering of the arguments in and out. -However: if you wish to store the function between calls, look to the SWIGLUA_REF below. +However: if you wish to store the function between calls, look to the SWIGLUA_REF below. */ // this is for the C code only, we don't want SWIG to wrapper it for us. @@ -69,10 +69,10 @@ note: it should be passed by value, not byref or as a pointer. The SWIGLUA_REF holds a pointer to the lua_State, and an integer reference to the object. Because it holds a permenet ref to an object, the SWIGLUA_REF must be handled with a bit more care. It should be initalised to {0,0}. The function swiglua_ref_set() should be used to set it. -swiglua_ref_clear() should be used to clear it when not in use, and swiglua_ref_get() to get the +swiglua_ref_clear() should be used to clear it when not in use, and swiglua_ref_get() to get the data back. -Note: the typemap does not check that the object is in fact a function, +Note: the typemap does not check that the object is in fact a function, if you need that you must add it yourself. @@ -84,10 +84,10 @@ if you need that you must add it yourself. lua_call(fn.L,2,1); // 2 in, 1 out return luaL_checknumber(fn.L,-1); } - + SWIG will automatically performs the wrappering of the arguments in and out. -However: if you wish to store the function between calls, look to the SWIGLUA_REF below. +However: if you wish to store the function between calls, look to the SWIGLUA_REF below. */ |