// Create a template for the global object and set the // built-in global functions. Handle<ObjectTemplate> global = ObjectTemplate::New(); global->Set(String::New("log"), FunctionTemplate::New(LogCallback)); // Each processor gets its own context so different processors // do not affect each other. Persistent<Context> context = Context::New(NULL, global);
Nowhere does it explain how the function callback works and what parameter(s) it takes. If anyone could direct me somewhere or give me information that would be amazing! Thanks for any help!