-
Notifications
You must be signed in to change notification settings - Fork 22
Simple stub
Yaroslav Kibysh edited this page Jul 6, 2019
·
1 revision
A simple stub creates a function that has no arguments and returns FALSE. See definitions and examples below.
Definition:
#define Stub(Function) int Function() { return Unimplemented(L"Function " #Function " is not implemented yet."); }
Usage example:
Stub(__security_gen_cookie2);
Expands into:
int __security_gen_cookie2()
{
return Unimplemented(L"Function __security_gen_cookie2 is not implemented yet.");
}
Returns FALSE