BluFedora Job System
v1.0.0
This is a C++ job system library for use in game engines.
job_assert.hpp
Go to the documentation of this file.
1
/******************************************************************************/
10
/******************************************************************************/
11
#ifndef JOB_ASSERT_HPP
12
#define JOB_ASSERT_HPP
13
14
#ifndef JOB_SYS_ASSERTIONS
15
#define JOB_SYS_ASSERTIONS 1
16
#endif
17
18
#if JOB_SYS_ASSERTIONS
19
namespace
Job
20
{
21
namespace
detail
22
{
23
void
assertHandler
(
const
bool
condition,
const
char
*
const
filename,
const
int
line_number,
const
char
*
const
msg);
24
}
25
}
// namespace Job
26
27
#define JobAssert(expr, msg) ::Job::detail::assertHandler((expr), __FILE__, __LINE__, msg)
28
#else
29
#define JobAssert(expr, msg)
30
#endif
31
32
#endif
// JOB_SPSC_QUEUE_HPP
33
34
/******************************************************************************/
35
/*
36
MIT License
37
38
Copyright (c) 2024 Shareef Abdoul-Raheem
39
40
Permission is hereby granted, free of charge, to any person obtaining a copy
41
of this software and associated documentation files (the "Software"), to deal
42
in the Software without restriction, including without limitation the rights
43
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
copies of the Software, and to permit persons to whom the Software is
45
furnished to do so, subject to the following conditions:
46
47
The above copyright notice and this permission notice shall be included in all
48
copies or substantial portions of the Software.
49
50
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
SOFTWARE.
57
*/
58
/******************************************************************************/
Job::detail::assertHandler
void assertHandler(const bool condition, const char *const filename, const int line_number, const char *const msg)
Job
Definition:
job_api.hpp:30
include
concurrent
job_assert.hpp
Generated on Sat Feb 15 2025 23:38:30 for BluFedora Job System by
1.9.2