Practically, I don't understand why webview.h, not webview.c.
Also, I wrote cgo, but I seemed to write functions that where copied from webview.h? Also, it is indeed possible to reference webview-custom.h externally.
These are called header only libraries.
The idea is portability primarily - you don't drag along C files which you have to compile and keep track of (by using make and linking them separately). The compiler does copy all the code into the .o file made from your .c that included the .h and that is the down side.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Practically, I don't understand why webview.h, not
webview.c
.Also, I wrote cgo, but I seemed to write functions that where copied from
webview.h
? Also, it is indeed possible to referencewebview-custom.h
externally.These are called header only libraries.
The idea is portability primarily - you don't drag along C files which you have to compile and keep track of (by using make and linking them separately). The compiler does copy all the code into the .o file made from your .c that included the .h and that is the down side.