mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
New updates and modules
This commit is contained in:
parent
4d5d408898
commit
0abf0f90f6
959 changed files with 364301 additions and 17493 deletions
15
node_modules/napi-macros/example/index.c
generated
vendored
Normal file
15
node_modules/napi-macros/example/index.c
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <node_api.h>
|
||||
#include <napi-macros.h>
|
||||
|
||||
NAPI_METHOD(times_two) {
|
||||
NAPI_ARGV(1)
|
||||
NAPI_ARGV_INT32(number, 0)
|
||||
|
||||
number *= 2;
|
||||
|
||||
NAPI_RETURN_INT32(number)
|
||||
}
|
||||
|
||||
NAPI_INIT() {
|
||||
NAPI_EXPORT_FUNCTION(times_two)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue