Move premake namespace creation into host
This commit is contained in:
parent
ae6ee359d1
commit
cca1ea6643
@ -1,9 +1,8 @@
|
||||
---
|
||||
-- Base definitions required by all the other scripts.
|
||||
-- @copyright 2002-2013 Jason Perkins and the Premake project
|
||||
-- @copyright 2002-2015 Jason Perkins and the Premake project
|
||||
---
|
||||
|
||||
premake = {}
|
||||
premake.modules = {}
|
||||
premake.tools = {}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* \file premake.c
|
||||
* \brief Program entry point.
|
||||
* \author Copyright (c) 2002-2014 Jason Perkins and the Premake project
|
||||
* \author Copyright (c) 2002-2015 Jason Perkins and the Premake project
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -115,6 +115,10 @@ int premake_init(lua_State* L)
|
||||
os_getcwd(L);
|
||||
lua_setglobal(L, "_WORKING_DIR");
|
||||
|
||||
/* start the premake namespace */
|
||||
lua_newtable(L);
|
||||
lua_setglobal(L, "premake");
|
||||
|
||||
return OKAY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user