aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-10-04 15:54:46 +1300
committerArslaan Pathan <[email protected]>2026-10-04 15:54:46 +1300
commit4c8f79bd52bb9effd00fe8347dd910cbec646e94 (patch)
treed806c319a910d8087b621ac71dada81a5dc82780
parent9576046da8179822183053a0363f0ad9d4be0805 (diff)
downloadParadox-4c8f79bd52bb9effd00fe8347dd910cbec646e94.tar.xz
Paradox-4c8f79bd52bb9effd00fe8347dd910cbec646e94.zip
String test (doesn't work because compiler fuckery)
-rw-r--r--README.md4
-rw-r--r--meson.build3
-rw-r--r--tests/String.m1
3 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3bb5008..de22ed8 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
# Paradox
-Application framework for Objective-C built from first principles.
+Application framework for Objective-C built from first principles, independent of Foundation/NeXTSTEP APIs.
+
+Compiler APIs depend on Foundation and Foundation depends on Compiler APIs.. wouldn't removing Foundation be a "Paradox"? (this is my shitty attempt at trying to find a reason for naming this Paradox other than the name sounding cool)
## Dependencies
diff --git a/meson.build b/meson.build
index c32e8c5..c5474ca 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('paradox', 'objc', version: '0.0.1', meson_version: '>=1.1.0')
-add_project_arguments('-Wno-objc-root-class', '-Werror', '-pedantic', '-Wall', '-fobjc-runtime=gnustep-2.0', language: 'objc') # gnustep-2.0 in this context simply means the libobjc2 runtime (which is made by the GNUstep team), not actually GNUstep. Paradox is an independent framework and has no dependency on GNUstep or any other Objective-C application framework.
+add_project_arguments('-Wno-objc-root-class', '-Werror', '-pedantic', '-Wall', '-fobjc-runtime=gnustep-2.0', '-fno-constant-cfstrings', '-fconstant-string-class=PXString', language: 'objc') # gnustep-2.0 in this context simply means the libobjc2 runtime (which is made by the GNUstep team), not actually GNUstep. Paradox is an independent framework and has no dependency on GNUstep or any other Objective-C application framework.
if get_option('debug_features')
add_project_arguments('-DPARADOX_DEBUG_FEATURES', language: 'objc')
@@ -32,6 +32,7 @@ test_deps += declare_dependency(link_with: paradox, include_directories: inc, de
executable('Object', 'tests/Object.m', dependencies: test_deps, install: false)
executable('Introspection', 'tests/Introspection.m', dependencies: test_deps, install: false)
executable('Selector', 'tests/Selector.m', dependencies: test_deps, install: false)
+executable('String', 'tests/String.m', dependencies: test_deps, install: false)
executable('AutoreleasePool', 'tests/AutoreleasePool.m', objc_args: ['-fobjc-arc'], dependencies: test_deps, install: false)
pkg = import('pkgconfig')
diff --git a/tests/String.m b/tests/String.m
index f93d53c..18a3825 100644
--- a/tests/String.m
+++ b/tests/String.m
@@ -5,4 +5,5 @@ int main(void) {
printf("PXString test\n");
PXString *string = @"Low taper fade";
printf("string UTF8String = %s\n", [string UTF8String]);
+ [string release];
}