Macro created by t0mstone
You can check the original source at
https://github.com/T0mstone/tlibs/blob/master/some_macros/src/lib.rs#L23-L29
Returns a MemoryPattern struct
Macro that creates the MainDLL function.
This function has a special signature that needed by WinAPI to
create a DLL.
Scoped no mangle to avoid repetition
Map winapi error to lib error.
Wrap a function to a lambda which returns a Result<_, Error>
depending of the condition.
You should use it like
wrap_winapi!(MyFunction(), MyCondition) where
MyCondition must start with an x and the comparison.
For example