zephyr/samples/subsys
Peter Bigot 4914d0db3b samples/subsys/logging/logger: rearrange for standard use of extern "C"
Consistently place C++ use of extern "C" after all include directives,
within the negative branch of _ASMLANGUAGE if used.

Background from issue #17997:

Declarations that use C linkage should be placed within extern "C"
so the language linkage is correct when the header is included by
a C++ compiler.

Similarly #include directives should be outside the extern "C" to
ensure the language-specific default linkage is applied to any
declarations provided by the included header.

See: https://en.cppreference.com/w/cpp/language/language_linkage
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2019-08-19 23:36:59 +02:00
..
console cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
fs subsys/fs/littlefs: allow customization of file system configuration 2019-08-06 19:39:26 +02:00
ipc Musca B1: MHU: IPM MHU dual core on V2M Musca B1 2019-07-31 10:31:29 -04:00
logging samples/subsys/logging/logger: rearrange for standard use of extern "C" 2019-08-19 23:36:59 +02:00
mgmt Bluetooth: Host: Print error codes in hex 2019-08-05 12:18:17 +02:00
nvs cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
power/device_pm cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
shell subsys/fs/shell: add littlefs support 2019-08-06 19:39:26 +02:00
usb samples: usb: hid-cdc: Use proper value in k_busy_wait() 2019-08-07 12:24:23 +02:00
subsys.rst