summaryrefslogtreecommitdiff
path: root/tests/tolua/libtest1/TestMod.cpp
blob: 491001cf8935d114e8e34c19d50f59a4b1a9d121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "TestMod.hpp"
#include "tolua.h"
#include "TestModLua.hpp"

#include <iostream>

using namespace std;

void Derived::hello( )
{
	cout << "hello" << endl;
}

static void initModule( )
{
//	tolua_TestMod_open( 0 /* m_lua, where from? */ );
}

static void destroyModule( )
{
}

REGISTER_MODULE( "testmod", &initModule, &destroyModule, Base, Derived )