File: main.cpp

package info (click to toggle)
sol2 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,096 kB
  • sloc: cpp: 43,816; ansic: 1,018; python: 356; sh: 288; makefile: 202
file content (11 lines) | stat: -rw-r--r-- 181 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#include <sol/sol.hpp>

sol::function fn;

int main(int, char*[]) {
	sol::state lua;
	lua.open_libraries(sol::lib::base);
	fn = lua["print"];
	fn.abandon();
	return 0;
}