diff options
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openocd.c b/src/openocd.c index 5439ece0..197c2e32 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -625,7 +625,12 @@ void initJim(void) interp->cb_fgets = openocd_jim_fgets; } -int main(int argc, char *argv[]) +/* +normally this is the main() function entry, but if OpenOCD is linked +into application, then this fn will not be invoked, but rather that +application will have it's own implementation of main(). +*/ +int openocd_main(int argc, char *argv[]) { initJim(); |