MCPcopy Create free account
hub / github.com/doldecomp/mkdd / regist

Method regist

libs/JSystem/JAudio/System/JASCallback.cpp:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5bool JASCallbackMgr::regist(JASCallback *function, void *argument)
6{
7 JAS_CS_START
8 for (int i = 0; i < NUM_CALLBACKS; i++) {
9 if (mCallbacks[i].mFunction == NULL) {
10 mCallbacks[i].mFunction = function;
11 mCallbacks[i].mArgument = argument;
12 return true;
13 }
14 }
15 JAS_CS_END
16 return false;
17}
18
19int JASCallbackMgr::reject(JASCallback *function, void *argument) {
20 int rejectNum = 0;

Callers 2

registerDspSyncCallbackFunction · 0.45
registerSubFrameCallbackFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected