September 2017
Beginner to intermediate
290 pages
6h 58m
English
The last macro in the series would be the one that makes it possible to export certain symbols. Our implementation of a cryptographic core would export just one symbol--the GetPointers() procedure--which, in turn, would return a pointer to a structure containing pointers to the rest of procedures. This macro follows the previously defined pattern:
; In this specific case, when the macro would be called ; at the end of the source, we may replace the; "macro finalize" declaration with the "postpone" directive.macro finalize{ if ACTIVE_TARGET = TARGET_W32_DLL section '.edata' export data readable export 'MA_CRYPTO.DLL',\ GetPointers, 'GetPointers' else if ACTIVE_TARGET = TARGET_W32_OBJ public GetPointers as '_GetPointers'Read now
Unlock full access