[ create a new paste ] login | about

Link: http://codepad.org/9ADd1x70    [ raw code | output | fork ]

C++, pasted on Aug 21:
1
2
3
4
5
6
7
8
9
10
int ModApiCamera::l_get_selected_node(lua_State *L)
{
	GET_ENV_PTR;

	UniversalCamera *cam = getobject(L, 1);
	ServerActiveObject *sao = env->getActiveObject(cam->getSelectedNodeID());
	getScriptApiBase(L)->objectrefGetOrCreate(L, sao);

	return 1;
}


Output:
1
2
Line 1: error: 'ModApiCamera' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: