Replies: 1 comment 2 replies
-
it is pretty easy to create an umbrella or an amalgamated package simply with clib.json and a wrapping API |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that we have lots of single function clibs.
Seems a bit overkill in some case to include all of the functions in individual folders...
I'm wondering if it makes sense to have a mode where you would have something like
microlib.clib.h
where installing a package would copy and paste it into one single .c and .h fileor perhaps copy and paste a specially marked up section into a source file? This would be useful for single file programs.
For this to work you may need:
E.g.
Not sure I like the syntax, but you get the idea (Maybe use preprocessor ifdef / endif as sections?)
One possible way to skip the need for 'start' and 'end' marker is if we include the number of C tokens and hash...
only issue is that the section won't be recognized if anyone tampered with it
Beta Was this translation helpful? Give feedback.
All reactions