riscv-non-isa / riscv-c-api-doc

Documentation of the RISC-V C API
https://jira.riscv.org/browse/RVG-4
Creative Commons Attribution 4.0 International
68 stars 38 forks source link

Add a preprocessor definitions to indidcate the landing pad labeling … #76

Open kito-cheng opened 3 months ago

kito-cheng commented 3 months ago

…scheme

Also add 2 more constant value to let user able to determine the scheme.

Example code:

#ifdef __riscv_landing_pad
  #if __riscv_landing_pad == __riscv_landing_pad_simple
    ...
  #elif __riscv_landing_pad == __riscv_landing_pad_func_sig
    ...
  #else
    #error "Unknown labeling scheme"
  #endif
#endif