diff options
author | chai <chaifix@163.com> | 2018-10-21 13:37:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-21 13:37:27 +0800 |
commit | 066e5987c515dfc34537d73ca9d2a81ddd1f9e1b (patch) | |
tree | ec45fe523daa4f9e8a30db0a045a0eb9cee84822 /src/lua/main.cpp | |
parent | 3292019e55dd02a96420e72bad88711fd36ef249 (diff) |
*注释
Diffstat (limited to 'src/lua/main.cpp')
-rw-r--r-- | src/lua/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/main.cpp b/src/lua/main.cpp index a17ed1c..495ca6f 100644 --- a/src/lua/main.cpp +++ b/src/lua/main.cpp @@ -28,16 +28,17 @@ int main(int argc, char* argv[]) /* absolute directory */ Buffer cwd = Buffer(1024); #ifdef _WIN32 - _getcwd((char*)cwd.data, cwd.size); + _getcwd((char*)&cwd, cwd.size()); #elif defined __unix__ #elif defined __APPLE__ #endif - luax_setfieldstring(L, "cwd", (char*)cwd.data); + luax_setfieldstring(L, "cwd", (char*)&cwd); luax_clear(L); /* boot jin and run it */ boot(L); luax_close(L); + return 0; }
\ No newline at end of file |