Advertisement
WeltEnSTurm

Loading C Libs

Aug 20th, 2013
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 1.98 KB | None | 0 0
  1.  
  2. mixin library!(
  3.     "luaLib", "lua51",
  4.     "luaL_newstate", "state_ptr function()",
  5.     "luaL_openlibs", "void function(state_ptr)",
  6.     "luaL_newmetatable", "void function(state_ptr, const(char)*)",
  7.     "luaL_checknumber", "double function(state_ptr, int)",
  8.     "luaL_loadstring", "int function(state_ptr, const(char)*)",
  9.     "luaL_loadfile", "int function(state_ptr, const(char)*)",
  10.     "luaL_checkudata", "void* function(state_ptr, int, const(char)*)",
  11.     "luaL_argerror", "int function(state_ptr, int, const(char)*)",
  12.     "luaL_ref", "int function(state_ptr, int)",
  13.     "luaL_unref", "void function(state_ptr, int, int)",
  14.     "lua_setfield", "void function(state_ptr, int, const(char)*)",
  15.     "lua_getfield", "void function(state_ptr, int, const(char)*)",
  16.     "lua_pcall", "int function(state_ptr, int, int, int)",
  17.     "lua_call", "void function(state_ptr, int, int)",
  18.     "luaL_checklstring", "const(char*) function(state_ptr, int, size_t*)",
  19.     "luaopen_base", "int function(state_ptr)",
  20.     "luaopen_table", "int function(state_ptr)",
  21.     "lua_close", "void function(state_ptr)",
  22.     "lua_createtable", "void function(state_ptr, int, int)",
  23.     "lua_setmetatable", "int function(state_ptr, int)",
  24.     "lua_settable", "void function(state_ptr, int)",
  25.     "lua_pushvalue", "void function(state_ptr, int)",
  26.     "lua_isstring", "int function(state_ptr, int)",
  27.     "lua_isnumber", "int function(state_ptr, int)",
  28.     "lua_settop", "void function(state_ptr, int)",
  29.     "lua_gettop", "int function(state_ptr)",
  30.     "lua_tonumber", "double function(state_ptr, int)",
  31.     "lua_tolstring", "const(char)* function(state_ptr, int, size_t*)",
  32.     "lua_pushstring", "void function(state_ptr, const char*)",
  33.     "lua_pushnumber", "void function(state_ptr, double)",
  34.     "lua_pushcclosure", "void function(state_ptr, lua_CFunction, int)",
  35.     "lua_newuserdata", "void* function(state_ptr, size_t)",
  36.     "lua_rawgeti", "void function(state_ptr, int, int)",
  37.     "lua_pushnil", "void function(state_ptr)",
  38.     "lua_next", "int function(state_ptr, int)",
  39.     "lua_type", "int function(state_ptr, int)"
  40. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement