mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 21:49:46 +00:00
comment for the trick to enable constructors in static lib & fix coding style
This commit is contained in:
parent
e94bf7272e
commit
625b5bcfee
4
cs.c
4
cs.c
@ -14,13 +14,15 @@ cs_err (*arch_init[MAX_ARCH])(cs_struct *) = { NULL };
|
||||
cs_err (*arch_option[MAX_ARCH]) (cs_struct *, cs_opt_type, size_t value) = { NULL };
|
||||
void (*arch_destroy[MAX_ARCH]) (cs_struct *) = { NULL };
|
||||
|
||||
// we need this trick to enable module constructors in static lib
|
||||
extern void enable_arm();
|
||||
extern void enable_arm64();
|
||||
extern void enable_mips();
|
||||
extern void enable_x86();
|
||||
extern void enable_powerpc();
|
||||
|
||||
void enable_construct() {
|
||||
void enable_construct()
|
||||
{
|
||||
#ifdef CAPSTONE_HAS_ARM
|
||||
enable_arm();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user