Skip to content

Commit

Permalink
Comment else-s and endif-s in macros
Browse files Browse the repository at this point in the history
  • Loading branch information
vorosl committed Nov 21, 2024
1 parent 2cf8a24 commit eb8bc5e
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 258 deletions.
22 changes: 11 additions & 11 deletions sljit_src/sljitConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#ifdef __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */

/*
This file contains the basic configuration options for the SLJIT compiler
Expand All @@ -47,19 +47,19 @@ extern "C" {
#ifndef SLJIT_UTIL_STACK
/* Enabled by default */
#define SLJIT_UTIL_STACK 1
#endif
#endif /* SLJIT_UTIL_STACK */

/* Uses user provided allocator to allocate the stack (see SLJIT_UTIL_STACK) */
#ifndef SLJIT_UTIL_SIMPLE_STACK_ALLOCATION
/* Disabled by default */
#define SLJIT_UTIL_SIMPLE_STACK_ALLOCATION 0
#endif
#endif /* SLJIT_UTIL_SIMPLE_STACK_ALLOCATION */

/* Single threaded application. Does not require any locks. */
#ifndef SLJIT_SINGLE_THREADED
/* Disabled by default. */
#define SLJIT_SINGLE_THREADED 0
#endif
#endif /* SLJIT_SINGLE_THREADED */

/* --------------------------------------------------------------------- */
/* Configuration */
Expand All @@ -70,7 +70,7 @@ extern "C" {
#ifndef SLJIT_STD_MACROS_DEFINED
/* Disabled by default. */
#define SLJIT_STD_MACROS_DEFINED 0
#endif
#endif /* SLJIT_STD_MACROS_DEFINED */

/* Executable code allocation:
If SLJIT_EXECUTABLE_ALLOCATOR is not defined, the application should
Expand All @@ -93,7 +93,7 @@ extern "C" {
#ifndef SLJIT_PROT_EXECUTABLE_ALLOCATOR
/* Disabled by default. */
#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 0
#endif
#endif /* SLJIT_PROT_EXECUTABLE_ALLOCATOR */

/* When SLJIT_WX_EXECUTABLE_ALLOCATOR is enabled SLJIT uses an
allocator which does not set writable and executable permission
Expand All @@ -104,27 +104,27 @@ extern "C" {
#ifndef SLJIT_WX_EXECUTABLE_ALLOCATOR
/* Disabled by default. */
#define SLJIT_WX_EXECUTABLE_ALLOCATOR 0
#endif
#endif /* SLJIT_WX_EXECUTABLE_ALLOCATOR */

#endif /* !SLJIT_EXECUTABLE_ALLOCATOR */

/* Return with error when an invalid argument is passed. */
#ifndef SLJIT_ARGUMENT_CHECKS
/* Disabled by default */
#define SLJIT_ARGUMENT_CHECKS 0
#endif
#endif /* SLJIT_ARGUMENT_CHECKS */

/* Debug checks (assertions, etc.). */
#ifndef SLJIT_DEBUG
/* Enabled by default */
#define SLJIT_DEBUG 1
#endif
#endif /* SLJIT_DEBUG */

/* Verbose operations. */
#ifndef SLJIT_VERBOSE
/* Enabled by default */
#define SLJIT_VERBOSE 1
#endif
#endif /* SLJIT_VERBOSE */

/*
SLJIT_IS_FPU_AVAILABLE
Expand All @@ -137,6 +137,6 @@ extern "C" {

#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __cplusplus */

#endif /* SLJIT_CONFIG_H_ */
2 changes: 1 addition & 1 deletion sljit_src/sljitConfigCPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
#if (defined SLJIT_CONFIG_ARM_V6 && SLJIT_CONFIG_ARM_V6) || (defined SLJIT_CONFIG_ARM_V7 && SLJIT_CONFIG_ARM_V7) \
|| (defined SLJIT_CONFIG_ARM_THUMB2 && SLJIT_CONFIG_ARM_THUMB2)
#define SLJIT_CONFIG_ARM_32 1
#endif
#endif /* SLJIT_CONFIG_ARM_V6 || SLJIT_CONFIG_ARM_V7 || SLJIT_CONFIG_ARM_THUMB2 */

#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
#define SLJIT_CONFIG_X86 1
Expand Down
Loading

0 comments on commit eb8bc5e

Please sign in to comment.