mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 09:39:42 +02:00
35 lines
880 B
CMake
35 lines
880 B
CMake
#[[
|
|
Toolkit neutral library for exceptions.
|
|
|
|
Abstract class AudacityException with a member function for a delayed
|
|
handler action, enqueued in the main thread;
|
|
|
|
Some commonly useful subclasses, with delayed handlers that are no-ops or
|
|
are displays of messages to the user;
|
|
|
|
Function template GuardedCall which stops propagation of exceptions and
|
|
enqueues the delayed action.
|
|
|
|
But this library does NOT define a top-level handler for the whole application,
|
|
to catch all otherwise uncaught exceptions. That is a responsibility of high
|
|
level code.
|
|
]]#
|
|
|
|
list( APPEND SOURCES
|
|
AudacityException.cpp
|
|
AudacityException.h
|
|
InconsistencyException.cpp
|
|
InconsistencyException.h
|
|
UserException.cpp
|
|
UserException.h
|
|
)
|
|
set( LIBRARIES
|
|
lib-utility-interface
|
|
lib-basic-ui-interface
|
|
PRIVATE
|
|
wxBase
|
|
)
|
|
audacity_library( lib-exceptions "${SOURCES}" "${LIBRARIES}"
|
|
"" ""
|
|
)
|