How can I extend the properties of assert() to another function?
assert
is normally a macro and doesn't come with built-in properties. We do provide a function that does have built-in assert-type properties whose name is __assert
, so you could use -function(__assert,yourfunction)
to copy those properties to yourfunction.