File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ class Project
6565
6666 public static void Main (String [] args )
6767 {
68-
6968 lua_State L = luaL_newstate ();
7069 if (L .Handle == UIntPtr .Zero )
7170 {
@@ -77,18 +76,18 @@ class Project
7776 lua_close (L );
7877
7978 Console .WriteLine (" Success" );
80-
8179 }
8280
8381}
8482```
8583
8684Example Usage LuaJIT:
8785``` C#
88- namespace LuaNET ;
89-
86+ using LuaJIT ;
9087using static LuaJIT .Lua ;
9188
89+ namespace LuaNET ;
90+
9291class Project
9392{
9493
@@ -102,7 +101,6 @@ class Project
102101
103102 public static void Main (String [] args )
104103 {
105-
106104 lua_State L = luaL_newstate ();
107105 if (L .Handle == UIntPtr .Zero )
108106 {
@@ -114,7 +112,6 @@ class Project
114112 lua_close (L );
115113
116114 Console .WriteLine (" Success" );
117-
118115 }
119116
120117}
You can’t perform that action at this time.
0 commit comments