(value, ...args)
| 8196 | const checkP_1 = require("./checkP"); |
| 8197 | const reader_1 = require("./reader"); |
| 8198 | function callFunction(value, ...args) { |
| 8199 | try { |
| 8200 | if (value == undefined) |
| 8201 | return ptr(0x0); |
| 8202 | for (let i = 1; i <= (arguments.length < 5 ? 5 : arguments.length) - 1; i++) |
| 8203 | arguments[i] = arguments[i] == undefined ? ptr(0x0) : ptr(String(arguments[i])); |
| 8204 | return new NativeFunction((0, checkP_1.checkPointer)(value, true), 'pointer', ['pointer', 'pointer', 'pointer', 'pointer'])(arguments[1], arguments[2], arguments[3], arguments[4]); |
| 8205 | } |
| 8206 | catch (e) { |
| 8207 | LOG(e, LogColor.C95); |
| 8208 | return ptr(0); |
| 8209 | } |
| 8210 | } |
| 8211 | exports.callFunction = callFunction; |
| 8212 | function callFunctionWithOutError(value, ...args) { |
| 8213 | try { |
no test coverage detected