summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-09 17:07:32 +0200
committerTyge Løvset <[email protected]>2021-09-09 17:07:32 +0200
commit2dcac231b5eea841f7bc607f0ddbc729bc41a9e5 (patch)
tree99d434d3ad1de5f09dd5fb7df0b0b182ccdc0c04 /examples
parent4e21ca6fa936d99d82ad2cda0fc50d7302736362 (diff)
downloadSTC-modified-2dcac231b5eea841f7bc607f0ddbc729bc41a9e5.tar.gz
STC-modified-2dcac231b5eea841f7bc607f0ddbc729bc41a9e5.zip
Made c_static_assert() C99 compatible (which was the point of it).
Diffstat (limited to 'examples')
-rw-r--r--examples/phonebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/phonebook.c b/examples/phonebook.c
index a4e2e0f2..a0aee757 100644
--- a/examples/phonebook.c
+++ b/examples/phonebook.c
@@ -39,7 +39,7 @@ void print_phone_book(cmap_str phone_book)
int main(int argc, char **argv)
{
- c_static_assert(3 == 3, "hello");
+ c_static_assert(sizeof argc == 4);
c_forauto (cset_str, names) {
c_emplace (cset_str, names, {"Hello", "Cool", "True"});