theos / logos

Preprocessor that simplifies Objective-C hooking.
https://theos.dev/docs/logos
Other
205 stars 34 forks source link

Use `__asm__` instead of `asm` in generated C code #113

Closed KorsChen closed 2 months ago

KorsChen commented 2 months ago

Use asm to support strict language standards such as ISO C99 and improve compiler compatibility.

L1ghtmann commented 2 months ago

Actually, would you mind doing this for the libhooker generator too? Thanks again!

leptos-null commented 2 months ago

Testing:

  1. Clone https://github.com/L1ghtmann/Quorra
  2. Add -std=c99 to CFLAGS
  3. make
  4. make clean
  5. make LOGOS_DEFAULT_GENERATOR=libhooker