diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-04 21:40:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-04 22:30:44 +0900 |
| commit | 17809b0571a038ec9eba3fc3620ba77a38c98afd (patch) | |
| tree | 2bf7473a7a52ae9f3c9c7a14009524149a1b2214 /src/common.c | |
| parent | 4c195b77b35e28f74e8fd48cb10c996b8d0c1097 (diff) | |
| download | ducc-17809b0571a038ec9eba3fc3620ba77a38c98afd.tar.gz ducc-17809b0571a038ec9eba3fc3620ba77a38c98afd.tar.zst ducc-17809b0571a038ec9eba3fc3620ba77a38c98afd.zip | |
feat: recursive macro expansion
Diffstat (limited to 'src/common.c')
| -rw-r--r-- | src/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index d3b85a5..ab71851 100644 --- a/src/common.c +++ b/src/common.c @@ -68,3 +68,9 @@ int strings_push(StrArray* strings, const char* str) { strings->data[strings->len] = str; return ++strings->len; } + +void strings_pop(StrArray* strings) { + if (strings->len > 0) { + strings->len--; + } +} |
