All pastes #20692 Raw Edit

Someone

public text v1 · immutable
#20692 ·published 2005-08-22 01:25 UTC
rendered paste body
#include "aloe.h"
#include "file.h"

AloeObj* filefunc(Context* context, std::vector<AloeObj*> args)
{
	return File::create(args[0]->asString(), args[1]->asString());
}

extern "C" void init_file(std::list<std::string>*(*pStrl)(), std::list<Function*>*(*pFuncl)())
{
	Function* func = new CXXFunction(filefunc);
	pStrl()->push_back("file");
	pFuncl()->push_back(func);
}