zephyr/include/sys
Peter Bigot fe74218956 sys: util.h: remove template implementation of ARRAY_SIZE
This was added because GNU G++ doesn't support the built-in function
used to produce a compile-time error when invalid parameters are
passed to the macro imlementation.  The template implementation does
not work on declarations like this:

  mytype array[] = { ... }

because it requires an explicit size for the template parameter.

Remove the template specialization, and support C++ with a version of
the macro that doesn't involve references to undefined builtins.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-06-10 12:02:45 +02:00
..
__assert.h assert: Completely remove file info and condition expression 2020-01-13 13:59:55 +01:00
arch_interface.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
atomic.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
base64.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
byteorder.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
check.h base: add error checking macros 2020-01-20 17:19:54 -05:00
crc.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dlist.h sys: dlist: remove deprecated sys_dlist_insert_{before,after} 2019-09-11 11:18:20 -05:00
errno_private.h cleanup: include/: move misc/errno_private.h to sys/errno_private.h 2019-06-27 22:55:49 -04:00
fdtable.h net: sockets: Extend ioctl poll protocol with offloading feature 2020-01-31 11:36:02 -05:00
libc-hooks.h cleanup: include/: move misc/libc-hooks.h to sys/libc-hooks.h 2019-06-27 22:55:49 -04:00
list_gen.h cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
math_extras.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
math_extras_impl.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mempool.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mempool_base.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mutex.h kernel: rename initializers to be internal 2020-04-24 22:27:08 +02:00
notify.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
onoff.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
printk.h lib: os: make snprintk fns generally available 2020-01-03 10:13:30 +01:00
rb.h cleanup: include/: move misc/rb.h to sys/rb.h 2019-06-27 22:55:49 -04:00
ring_buffer.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sem.h kernel/timeout: Make timeout arguments an opaque type 2020-03-31 19:40:47 -04:00
sflist.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
slist.h cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
speculation.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sys_heap.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sys_io.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
thread_stack.h kernel: add Z_STACK_PTR_ALIGN ARCH_STACK_PTR_ALIGN 2020-04-21 18:45:45 -04:00
time_units.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
timeutil.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
util.h sys: util.h: remove template implementation of ARRAY_SIZE 2020-06-10 12:02:45 +02:00