Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
svn-12539
(1/1)
LETARTARE:
svn-12539 :: in plugin contrib 'BrowseTracker_wx30-unix.cbp', the definition of 'cbDEBUG' is missing !!, which causes the non-recognition of 'cbAssertNonFatal()'
Pecan:
Thanks. Fixed in head r12543
blauzahn:
Hello,
I see the same compile error with svn-12556. Here I use ubuntu-20.04 as well as arch linux and
compile cb as usual per command-line, configure and make.
Although the symbol cbDEBUG might be missing in some project(s), IMHO
cbAssertNonFatal should be handled in file src/include/cbexception.h in the same way cbAssert is.
mainly:
--- Code: ---#ifndef cbDEBUG
#define cbAssertMessage(expr)
#define cbAssertNonFatal(expr)
#define cbAssert(expr)
#else
--- End code ---
Or maybe define them like en.cppreference.com/w/cpp/error/assert.
A patch for the file is attached.
Thanks in advance.
Totoxa:
--- Quote from: Pecan on December 02, 2021, 08:08:32 am ---Thanks. Fixed in head r12543
--- End quote ---
That fix doesn't work for building from command line (bootstrap, configure, make).
Pecan:
--- Quote from: blauzahn on December 07, 2021, 01:23:54 pm ---... IMHO cbAssertNonFatal should be handled in file src/include/cbexception.h in the same way cbAssert is.
mainly:
--- Code: ---#ifndef cbDEBUG
#define cbAssertMessage(expr)
#define cbAssertNonFatal(expr)
#define cbAssert(expr)
#else
--- End code ---
--- End quote ---
Thanks, fixed again, Head r12566
Navigation
[0] Message Index
Go to full version