This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
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