From 9aabbe7720b3c315048f977642e4bb8e387b572a Mon Sep 17 00:00:00 2001 From: CNLohr Date: Tue, 14 Mar 2017 21:12:18 -0400 Subject: Add a symbol enumerator for systems that don't support __contructor__. --- redist/symbol_enumerator.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 redist/symbol_enumerator.h (limited to 'redist/symbol_enumerator.h') diff --git a/redist/symbol_enumerator.h b/redist/symbol_enumerator.h new file mode 100644 index 0000000..87e033b --- /dev/null +++ b/redist/symbol_enumerator.h @@ -0,0 +1,12 @@ +#ifndef _SYMBOL_ENUMERATOR_H +#define _SYMBOL_ENUMERATOR_H + +//Enumerates all symbols in the currently loaded excutable. +//Don't forget to compile with -rdynamic! + +//Return 0 to continue search. 1 to stop. +typedef int (*SymEnumeratorCallback)( const char * path, const char * name, void * location, long size ); + +int EnumerateSymbols( SymEnumeratorCallback cb ); + +#endif -- cgit v1.2.3