-
-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-5.0-alpha12' into release
- Loading branch information
Showing
633 changed files
with
48,627 additions
and
26,842 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ Makefile | |
*.ncb | ||
*.vcproj* | ||
*.vcxproj* | ||
*.VC.opendb | ||
*.VC.db | ||
*.opensdf | ||
*.workspace | ||
*.project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <luashim.h> | ||
|
||
|
||
static int example_test(lua_State* L) | ||
{ | ||
lua_pushstring(L, "hello "); | ||
lua_pushvalue(L, 1); | ||
lua_concat(L, 2); | ||
return 1; | ||
} | ||
|
||
|
||
static const luaL_Reg example_functions[] = { | ||
{ "test", example_test }, | ||
{ NULL, NULL } | ||
}; | ||
|
||
|
||
#ifdef _WIN32 | ||
__declspec(dllexport) int luaopen_example(lua_State *L) | ||
#else | ||
int luaopen_example(lua_State *L) | ||
#endif | ||
{ | ||
shimInitialize(L); | ||
luaL_register(L, "example", example_functions); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
project "example" | ||
language "C" | ||
kind "SharedLib" | ||
warnings "extra" | ||
|
||
includedirs { | ||
"../../contrib/lua/src", | ||
"../../contrib/luashim" | ||
} | ||
|
||
links { 'luashim-lib' } | ||
|
||
files | ||
{ | ||
"*.c", | ||
"*.lua" | ||
} | ||
|
||
filter "system:not windows" | ||
targetprefix "" | ||
targetextension ".so" | ||
pic "on" | ||
|
||
filter "configurations:Release" | ||
targetdir "../../bin/release" | ||
|
||
filter "configurations:Debug" | ||
targetdir "../../bin/debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.