Example #1
0
Handle<Value> fl_sha_ConstructorCall(const Arguments& args) {
    if(!args.IsConstructCall()) {
        return ThrowException(String::New("Cannot call constructor like a function"));
    }
    HandleScope handle_scope;
    Shader* s = new Shader();
	return s->GetWrappedObject();
}