Beispiel #1
0
    public static string lua_pushstring(LuaState state, string s)
    {
        // This version is designed to handle null strings correctly.
        IntPtr stringPtr = LuaNativeBinding.lua_pushstring(state, s);

        return(Marshal.PtrToStringAnsi(stringPtr));
    }