anael-seghezzi / CToy

Interactive C live coding environment
Other
1.36k stars 71 forks source link

Added argc and argv to all calls of ctoy_begin #10

Closed Smilex closed 7 years ago

Smilex commented 7 years ago

In the project I'm working on I need to work with arguments passed to CToy. This makes it so that ctoy_begin now has two parameters, int argc and char **argv

anael-seghezzi commented 7 years ago

Hi,

it would be better to add two functions to the api instead of modifying ctoy_begin. I can't include that because it would break previous code, from people already using CToy, from older projects etc.

Ex of a better way, in ctoy.h : int ctoy_argc(void); // return arvc char **ctoy_argv(void); // return argv