summaryrefslogtreecommitdiff
path: root/scripting/test.cpp
blob: 1a378b72579271ad3b15e495a380c687b0333d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "scripting/test.h"
#include "scripting.h"

#include <iostream>

void print(lua_State *L, const char *s) {
	lua_getglobal(L, "lua_instance");
	Lua *lua = static_cast<Lua*>(lua_touserdata(L, -1));
	lua_pop(L, 1);
	lua->print(s);
}