Blender
V4.3
source
blender
freestyle
intern
system
Exception.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
#ifdef WITH_CXX_GUARDEDALLOC
13
# include "
MEM_guardedalloc.h
"
14
#endif
15
16
namespace
Freestyle
{
17
18
class
Exception
{
19
public
:
20
typedef
enum
{
21
NO_EXCEPTION
,
22
UNDEFINED
,
23
}
exception_type
;
24
25
static
int
getException
()
26
{
27
exception_type
e
= _exception;
28
_exception =
NO_EXCEPTION
;
29
return
e
;
30
}
31
32
static
int
raiseException
(
exception_type
exception =
UNDEFINED
)
33
{
34
_exception = exception;
35
return
_exception;
36
}
37
38
static
void
reset
()
39
{
40
_exception =
NO_EXCEPTION
;
41
}
42
43
private
:
44
static
exception_type
_exception;
45
46
#ifdef WITH_CXX_GUARDEDALLOC
47
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:Exception"
)
48
#endif
49
};
50
51
}
/* namespace Freestyle */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
e
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
Definition
bmesh_query_inline.hh:36
Freestyle::Exception
Definition
Exception.h:18
Freestyle::Exception::exception_type
exception_type
Definition
Exception.h:20
Freestyle::Exception::NO_EXCEPTION
@ NO_EXCEPTION
Definition
Exception.h:21
Freestyle::Exception::UNDEFINED
@ UNDEFINED
Definition
Exception.h:22
Freestyle::Exception::reset
static void reset()
Definition
Exception.h:38
Freestyle::Exception::getException
static int getException()
Definition
Exception.h:25
Freestyle::Exception::raiseException
static int raiseException(exception_type exception=UNDEFINED)
Definition
Exception.h:32
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0