image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
EVE_Platform.h File Reference

Platform selector. More...

#include "EVE_Config.h"
#include "EVE_Platform_FT9XX.h"
#include "EVE_GpuTypes.h"
#include "EVE_HalDefs.h"
#include "EVE_Cmd.h"
#include "EVE_MediaFifo.h"
#include "EVE_CoCmd.h"
#include "EVE_CoDl.h"
#include "EVE_GpuDefs.h"
#include "EVE_Util.h"
#include "EVE_LoadFile.h"

Go to the source code of this file.

Macros

#define EVE_PLATFORM__H
 
#define eve_noop()
 
#define eve_debug_break()   eve_noop()
 
#define eve_deprecated(msg)
 
#define eve_assume(cond)   eve_noop()
 
#define eve_printf_debug_once(fmt, ...)
 
#define eve_printf_debug(fmt, ...)   eve_printf(fmt, ##__VA_ARGS__)
 
#define eve_assert(cond)
 
#define eve_assert_ex(cond, ex)
 
#define eve_assert_do(cond)   eve_assert(cond)
 
#define eve_trace(str)
 

Detailed Description

Platform selector.

Author
Bridgetek
Date
2018

MIT License

Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file EVE_Platform.h.

Macro Definition Documentation

◆ eve_assert

#define eve_assert (   cond)
Value:
do \
{ \
if (!(cond)) \
{ \
const char *str = #cond; \
const char *sf = __FILE__; \
eve_printf("EVE Assert Failed: %s (in file '%s' on line '%i')\n", str ? str : "<NULL>", sf ? sf : "<NULL>", __LINE__); \
eve_debug_break(); \
} \
eve_assume(cond); \
} while (false)

Definition at line 136 of file EVE_Platform.h.

138 { \
139 if (!(cond)) \
140 { \
141 const char *str = #cond; \
142 const char *sf = __FILE__; \
143 eve_printf("EVE Assert Failed: %s (in file '%s' on line '%i')\n", str ? str : "<NULL>", sf ? sf : "<NULL>", __LINE__); \
144 eve_debug_break(); \
145 } \
146 eve_assume(cond); \
147 } while (false)

◆ eve_assert_do

#define eve_assert_do (   cond)    eve_assert(cond)

Definition at line 160 of file EVE_Platform.h.

◆ eve_assert_ex

#define eve_assert_ex (   cond,
  ex 
)
Value:
do \
{ \
if (!(cond)) \
{ \
const char *str = #cond; \
const char *sf = __FILE__; \
eve_printf("EVE Assert Failed: %s (%s) (in file '%s' on line '%i')\n", ex ? ex : "<NULL>", str ? str : "<NULL>", sf ? sf : "<NULL>", __LINE__); \
eve_debug_break(); \
} \
eve_assume(cond); \
} while (false)

Definition at line 148 of file EVE_Platform.h.

150 { \
151 if (!(cond)) \
152 { \
153 const char *str = #cond; \
154 const char *sf = __FILE__; \
155 eve_printf("EVE Assert Failed: %s (%s) (in file '%s' on line '%i')\n", ex ? ex : "<NULL>", str ? str : "<NULL>", sf ? sf : "<NULL>", __LINE__); \
156 eve_debug_break(); \
157 } \
158 eve_assume(cond); \
159 } while (false)

◆ eve_assume

#define eve_assume (   cond)    eve_noop()

Definition at line 121 of file EVE_Platform.h.

◆ eve_debug_break

#define eve_debug_break ( )    eve_noop()

Definition at line 93 of file EVE_Platform.h.

◆ eve_deprecated

#define eve_deprecated (   msg)

Definition at line 107 of file EVE_Platform.h.

◆ eve_noop

#define eve_noop ( )
Value:
do \
{ \
} while (false)

Definition at line 72 of file EVE_Platform.h.

74 { \
75 } while (false)

◆ EVE_PLATFORM__H

#define EVE_PLATFORM__H

Definition at line 37 of file EVE_Platform.h.

◆ eve_printf_debug

#define eve_printf_debug (   fmt,
  ... 
)    eve_printf(fmt, ##__VA_ARGS__)

Definition at line 135 of file EVE_Platform.h.

◆ eve_printf_debug_once

#define eve_printf_debug_once (   fmt,
  ... 
)
Value:
do \
{ \
static bool eve_printf_debug_once_flag = false; \
if (!eve_printf_debug_once_flag) \
{ \
eve_printf(fmt, ##__VA_ARGS__); \
eve_printf_debug_once_flag = true; \
} \
} while (false)

Definition at line 125 of file EVE_Platform.h.

127 { \
128 static bool eve_printf_debug_once_flag = false; \
129 if (!eve_printf_debug_once_flag) \
130 { \
131 eve_printf(fmt, ##__VA_ARGS__); \
132 eve_printf_debug_once_flag = true; \
133 } \
134 } while (false)

◆ eve_trace

#define eve_trace (   str)
Value:
do \
{ \
const char *sc = __FILE__; \
eve_printf("EVE Trace: %s (in file '%s' on line '%i')\n", (str) ? (str) : "<NULL>", sf ? sf : "<NULL>", __LINE__); \
} while (false)

Definition at line 161 of file EVE_Platform.h.

163 { \
164 const char *sc = __FILE__; \
165 eve_printf("EVE Trace: %s (in file '%s' on line '%i')\n", (str) ? (str) : "<NULL>", sf ? sf : "<NULL>", __LINE__); \
166 } while (false)