|
| |||||||||||||||||||||||||||||||||||||
| devas (6) | |
|
Hi, i have a question. Is it possible to write a code that callable both from C and C++? I want to write a logger which put some logs in a specific file and also i should call its functions from both C and C++. | |
|
|
|
| guestgulkan (2375) | |
| Yes - google extern "C" | |
|
|
|
| Bazzy (6258) | |
| Also look for the __cplusplus macro | |
|
|
|
| devas (6) | |
| Thank you | |
|
|
|