#define ARRAY_SIZE(a) (sizeof a / sizeof(*a))
struct S {
const char *name;
int n;
} things[] = {
{ "abc", 1 },
{ "def", 8787 },
{ "z", 0 },
{ "a", 1 },
};
ARRAY_SORT(
things,
ARRAY_SIZE(things),
(struct S a, struct S b) {
yield(strcmp(a.name, b.name));
}
);
-
Notifications
You must be signed in to change notification settings - Fork 0
theofabilous/clam
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Lambda syntax achieved with C preprocessor macros
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published