Changeset 17

Show
Ignore:
Timestamp:
06/27/06 21:45:19 (6 years ago)
Author:
Anders
Message:

wrapper around the Lua libraries... not completely done yet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test.d

    r5 r17  
    1 import lua.lua, lua.lauxlib, lua.lualib; 
     1import lua.wrap, lua.lauxlib, lua.lualib; 
    22import std.c.stdio; 
    33 
    44int main (char[][] args) { 
    5   lua_State* L
     5  Lua state = new Lua()
    66  
    7   L = luaL_newstate(); 
    8   luaL_openlibs(L); 
    9   luaL_dofile(L, "test.lua"); 
     7  // luaL_openlibs(L); 
     8   
     9  luaL_openlibs(state.GetState()); 
     10  luaL_dofile(state.GetState(), "test.lua"); 
    1011   
    1112  printf("Hey, this is before close!\n"); fflush(null); 
    12    
    13   lua_close(L); 
    1413  return 0; 
    1514}