Skip to content
Snippets Groups Projects
Select Git revision
  • 8439227e8d3441956fe49a6fdb32a2389d5cd7c5
  • master default protected
  • secondcolor
  • next
  • ceilingz-fixes
  • teampowerstones
  • jingleoptions
  • togglejingles
  • mapload-refactor
  • emeraldhunt-fix
  • fixcoronalist
  • respawndelaygametyperule
  • ld413-mp-fix
  • dashmode-ctf-monitors
  • udmf-specials
  • polyobj-waypoint-thinker-optimise
  • udmf-base
  • renderswitch
  • kill-zshift
  • findvar
  • software-clownery
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
  • td-release-v1.0.0
  • SRB2_release_2.1.17
  • SRB2_release_2.1.16a
  • SRB2_release_2.1.16
  • SRB2_release_2.1.15
  • SRB2_release_2.1.14
  • SRB2_release_2.1.12
  • SRB2_release_2.1.11
  • SRB2_release_2.1.10
  • SRB2_release_2.1.9
  • SRB2_release_2.1.8
41 results

lua_script.h

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    linit.c 626 B
    /*
    ** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $
    ** Initialization of libraries for lua.c
    ** See Copyright Notice in lua.h
    */
    
    
    #define linit_c
    #define LUA_LIB
    
    #include "lua.h"
    
    #include "lualib.h"
    #include "lauxlib.h"
    
    
    static const luaL_Reg lualibs[] = {
      {"", luaopen_base},
      {LUA_TABLIBNAME, luaopen_table},
      {LUA_IOLIBNAME, luaopen_io},
      {LUA_STRLIBNAME, luaopen_string},
      {NULL, NULL}
    };
    
    
    LUALIB_API void luaL_openlibs (lua_State *L) {
      const luaL_Reg *lib = lualibs;
      for (; lib->func; lib++) {
        lua_pushcfunction(L, lib->func);
        lua_pushstring(L, lib->name);
        lua_call(L, 1, 0);
      }
    }