| 1 | /* |
| 2 | * Copyright (C) 2014-2026 Muhammad Tayyab Akram |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _SB_PUBLIC_CONFIG_H |
| 18 | #define _SB_PUBLIC_CONFIG_Hcxx . . $ `Headers/SheenBidi/SBConfig.h:18:9`! |
| 19 | |
| 20 | /* #define SB_CONFIG_DLL_EXPORT */ |
| 21 | /* #define SB_CONFIG_DLL_IMPORT */ |
| 22 | /* #define SB_CONFIG_LOG */ |
| 23 | /* #define SB_CONFIG_UNITY */ |
| 24 | /* #define SB_CONFIG_ALLOW_NON_ATOMIC_FALLBACK */ |
| 25 | |
| 26 | /** |
| 27 | * Disable scratch memory functionality of default allocator. |
| 28 | * When defined, all scratch memory operations will return NULL/do nothing. |
| 29 | */ |
| 30 | /* #define SB_CONFIG_DISABLE_SCRATCH_MEMORY */ |
| 31 | |
| 32 | /** |
| 33 | * Enables the optional text editing and analysis API, including support for inserting, removing, |
| 34 | * and modifying code units, applying attributes, and querying logical, script, attribute, and |
| 35 | * visual runs. These features perform incremental paragraph analysis internally. |
| 36 | * |
| 37 | * The API is considered experimental and may change based on production feedback. |
| 38 | */ |
| 39 | /* #define SB_CONFIG_EXPERIMENTAL_TEXT_API */ |
| 40 | |
| 41 | /** |
| 42 | * Define the size of each scratch buffer in bytes. |
| 43 | * Default is 8192 bytes (8KB) if not specified. |
| 44 | */ |
| 45 | #ifndef SB_CONFIG_SCRATCH_BUFFER_SIZE |
| 46 | #define SB_CONFIG_SCRATCH_BUFFER_SIZEcxx . . $ `Headers/SheenBidi/SBConfig.h:46:9`! 8192 |
| 47 | #endif |
| 48 | |
| 49 | /** |
| 50 | * Define the number of scratch buffers in the pool. |
| 51 | * Default is 3 buffers if not specified. |
| 52 | */ |
| 53 | #ifndef SB_CONFIG_SCRATCH_POOL_SIZE |
| 54 | #define SB_CONFIG_SCRATCH_POOL_SIZEcxx . . $ `Headers/SheenBidi/SBConfig.h:54:9`! 3 |
| 55 | #endif |
| 56 | |
| 57 | #endif |