Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 440 Bytes
#include "rotator.h"
napi_value init(napi_env env, napi_value exports) {
napi_status status;
napi_property_descriptor descriptors[] = {
{"rotate", 0, rotate, 0, 0, 0, napi_default, 0}};
status = napi_define_properties(env, exports, 1, descriptors);
if (status != napi_ok) {
napi_throw_error(env, NULL, "failed to define module properties");
return NULL;
}
return exports;
}
NAPI_MODULE(NativeExtension, init)