libGimbal 0.0.0 (PRERELEASE)
Ultimate C17/C++20 Core Utility Library and Cross-Language Runtime Framework
gimbal_api_frame.h File Reference

Go to the source code of this file.

Macros

#define GBL_API_FRAME_DECLARE
 
#define GBL_API_FRAME()
 
#define GBL_API_CONTEXT()
 
#define GBL_API_OBJECT()
 
#define GBL_API_RECORD()
 
#define GBL_API_RESULT()
 
#define GBL_API_SOURCE()
 
#define GBL_API_LAST_RECORD()
 
#define GBL_API_LAST_RESULT()
 
#define GBL_SRC_FILE
 
#define GBL_SRC_FN
 
#define GBL_SRC_LN
 
#define GBL_SRC_COL
 
#define GBL_SRC_LOC
 
#define GblSrcLoc
 
#define GBL_SOURCE_LOCATION(FILE, FUNCTION, LINE, COL)
 
#define GBL_API_STACK_FRAME_SOURCE_PUSH(pStackFrame, current)
 
#define GBL_API_STACK_FRAME_SOURCE_POP(pStackFrame)
 
#define GBL_API_SOURCE_LOC_PUSH(srcLoc)
 
#define GBL_API_SOURCE_PUSH(FILE, FUNCTION, LINE, COLUMN)
 
#define GBL_API_SOURCE_POP()
 
#define GBL_API_SOURCE_SCOPED(CALL, loc, ...)
 
#define GBL_API_RECORD_SET_JMP_CND_(expr, result, label, srcLoc, ...)
 
#define GBL_API_RECORD_SET_JMP_CND(expr, result, label, ...)
 
#define GBL_API_VERIFY_(expr, result, srcLoc, ...)
 
#define GBL_API_VERIFY_N(srcLoc, expr, result, ...)
 
#define GBL_API_VERIFY_3(srcLoc, expr, result)
 
#define GBL_API_VERIFY(...)
 
#define GBL_API_VERIFY_EXPRESSION_N(srcLoc, expr, ...)
 
#define GBL_API_VERIFY_EXPRESSION_2(src, expr)
 
#define GBL_API_VERIFY_EXPRESSION(...)
 
#define GBL_API_VERIFY_POINTER_N(srcLoc, expr, ...)
 
#define GBL_API_VERIFY_POINTER_2(src, expr)
 
#define GBL_API_VERIFY_POINTER(...)
 
#define GBL_API_VERIFY_ARG_N(srcLoc, expr, ...)
 
#define GBL_API_VERIFY_ARG_2(src, expr)
 
#define GBL_API_VERIFY_ARG(...)
 
#define GBL_API_VERIFY_TYPE_N(srcLoc, actualType, expectedType, ...)
 
#define GBL_API_VERIFY_TYPE_3(srcLoc, actualType, expectedType)
 
#define GBL_API_VERIFY_TYPE_2(srcLoc, actualType)
 
#define GBL_API_VERIFY_TYPE(...)
 
#define GBL_API_VERIFY_LAST_RECORD()
 
#define GBL_API_CLEAR_LAST_RECORD()
 
#define GBL_API_ERRNO_CLEAR()
 
#define GBL_API_PERROR(...)
 
#define GBL_API_INLINE_RETVAL()
 
#define GBL_API_INLINE(MethodPrefix, ReturnType, ...)
 
#define GBL_API_INLINE_BEGIN(InitialRetValue)
 
#define GBL_API_INLINE_END()
 
#define GBL_API_INLINE_RETURN()
 
#define GBL_API_INLINE_CALL_(MethodPrefix, srcLoc, ...)
 
#define GBL_API_INLINE_CALL(MethodPrefix, ...)
 
#define GBL_API_EXT(prefix, ...)
 
#define GBL_API_MALLOC_4(src, size, align, dbgStr)
 
#define GBL_API_MALLOC_3(src, size, align)
 
#define GBL_API_MALLOC_2(src, size)
 
#define GBL_API_MALLOC(...)
 
#define GBL_API_NEW_4(src, type, count, dbgStr)
 
#define GBL_API_NEW_3(src, type, count)
 
#define GBL_API_NEW_2(src, type)
 
#define GBL_API_NEW(...)
 
#define GBL_API_REALLOC_4(src, pData, newSize, newAlign)
 
#define GBL_API_REALLOC_3(src, pData, newSize)
 
#define GBL_API_REALLOC(...)
 
#define GBL_API_RENEW_5(src, ptr, type, count, dbgStr)
 
#define GBL_API_RENEW_4(src, ptr, type, count)
 
#define GBL_API_RENEW_3(src, ptr, type)
 
#define GBL_API_RENEW(...)
 
#define GBL_API_FREE(pData)
 
#define GBL_API_PUSH_(srcLoc, ...)
 
#define GBL_API_PUSH()
 
#define GBL_API_PUSH_VERBOSE_N(srcLoc, pFmt, ...)
 
#define GBL_API_PUSH_VERBOSE(...)
 
#define GBL_API_POP_2(srcLoc, count)
 
#define GBL_API_POP_1(srcLoc)
 
#define GBL_API_POP(...)
 
#define GBL_API_LOG_(src, level, pFmt, ...)
 
#define GBL_API_LOG(level, pFmt, ...)
 
#define GBL_API_DEBUG(pFmt, ...)
 
#define GBL_API_VERBOSE(pFmt, ...)
 
#define GBL_API_INFO(pFmt, ...)
 
#define GBL_API_WARN(pFmt, ...)
 
#define GBL_API_ERROR(pFmt, ...)
 
#define GBL_API_EVENT_2(srcLoc, event)
 
#define GBL_API_EVENT(event)
 
#define GBL_API_RECORD_ASSERT_(record, test)
 
#define GBL_API_RECORD_ASSERT_CONDITIONAL_(enabled, record, test)
 
#define GBL_API_RECORD_ASSERT_PARTIAL(record)
 
#define GBL_API_RECORD_ASSERT_ERROR(record)
 
#define GBL_API_RECORD_ASSERT_UNKNOWN(record)
 
#define GBL_API_RECORD_ASSERT(record)
 
#define GBL_API_RECORD_LOG_(prefix, record)
 
#define GBL_API_RECORD_LOG_CONDITIONAL_(prefix, record)
 
#define GBL_API_RECORD_LOG_PARTIAL(record)
 
#define GBL_API_RECORD_LOG_ERROR(record)
 
#define GBL_API_RECORD_LOG_UNKNOWN(record)
 
#define GBL_API_RECORD_LOG(record)
 
#define GBL_API_RECORD_LAST_RECORD_(prefix, record)
 
#define GBL_API_RECORD_LAST_RECORD_CONDITIONAL_(prefix, record)
 
#define GBL_API_RECORD_LAST_RECORD_PARTIAL(record)
 
#define GBL_API_RECORD_LAST_RECORD_ERROR(record)
 
#define GBL_API_RECORD_LAST_RECORD_UNKNOWN(record)
 
#define GBL_API_RECORD_LAST_RECORD(record)
 
#define GBL_API_RECORD_HANDLER(record)
 
#define GBL_API_RECORD_SET_N(file, func, line, col, result, ...)
 
#define GBL_API_RECORD_SET_6(file, func, line, col, result, pFmt)
 
#define GBL_API_RECORD_SET_5(file, func, line, col, result)
 
#define GBL_API_RECORD_SET(...)
 
#define GBL_API_CALL_N(src, funcCall, ...)
 
#define GBL_API_CALL_2(src, funcCall)
 
#define GBL_API_CALL(...)
 
#define GBL_API_VERIFY_CALL(...)
 
#define GBL_API_BEGIN_FRAME(file, func, line, col, pObject, frame)
 
#define GBL_API_BEGIN_LOG_5(file, func, line, col, hHandle)
 
#define GBL_API_BEGIN_LOG_N(file, func, line, col, hHandle, ...)
 
#define GBL_API_BEGIN(...)
 
#define GBL_API_DONE()
 
#define GBL_API_END_BLOCK()
 
#define GBL_API_END()
 
#define GBL_API_END_EMPTY()
 
#define GBL_API_BLOCK_7(file, func, line, col, hHandle, frame, block)
 
#define GBL_API_BLOCK_6(file, func, line, col, hHandle, block)
 
#define GBL_API_BLOCK_5(file, func, line, col, block)
 
#define GBL_API_BLOCK(...)
 

Functions

static GBL_RESULT GBL_ERRNO_RESULT (int ernum)
 
static void * GBL_API_INLINE_MALLOC_ (GblStackFrame *GBL_API_FRAME_NAME, GblSourceLocation srcLoc, GblSize size, GblSize align, const char *pDebugStr)
 
static void * GBL_API_INLINE_REALLOC_ (GblStackFrame *GBL_API_FRAME_NAME, GblSourceLocation srcLoc, void *pData, GblSize newSize, GblSize newAlign)
 
static GBL_RESULT GBL_API_INLINE_LOG_ (GblStackFrame *GBL_API_FRAME_NAME, GblSourceLocation srcLoc, GBL_LOG_LEVEL level, const char *pFmt,...)
 

Macro Definition Documentation

◆ GBL_API_BEGIN

#define GBL_API_BEGIN (   ...)

Definition at line 593 of file gimbal_api_frame.h.

◆ GBL_API_BEGIN_FRAME

#define GBL_API_BEGIN_FRAME (   file,
  func,
  line,
  col,
  pObject,
  frame 
)

Definition at line 580 of file gimbal_api_frame.h.

◆ GBL_API_BEGIN_LOG_5

#define GBL_API_BEGIN_LOG_5 (   file,
  func,
  line,
  col,
  hHandle 
)

Definition at line 586 of file gimbal_api_frame.h.

◆ GBL_API_BEGIN_LOG_N

#define GBL_API_BEGIN_LOG_N (   file,
  func,
  line,
  col,
  hHandle,
  ... 
)

Definition at line 589 of file gimbal_api_frame.h.

◆ GBL_API_BLOCK

#define GBL_API_BLOCK (   ...)

Definition at line 624 of file gimbal_api_frame.h.

◆ GBL_API_BLOCK_5

#define GBL_API_BLOCK_5 (   file,
  func,
  line,
  col,
  block 
)

Definition at line 621 of file gimbal_api_frame.h.

◆ GBL_API_BLOCK_6

#define GBL_API_BLOCK_6 (   file,
  func,
  line,
  col,
  hHandle,
  block 
)

Definition at line 618 of file gimbal_api_frame.h.

◆ GBL_API_BLOCK_7

#define GBL_API_BLOCK_7 (   file,
  func,
  line,
  col,
  hHandle,
  frame,
  block 
)

Definition at line 613 of file gimbal_api_frame.h.

◆ GBL_API_CALL

#define GBL_API_CALL (   ...)

Definition at line 564 of file gimbal_api_frame.h.

◆ GBL_API_CALL_2

#define GBL_API_CALL_2 (   src,
  funcCall 
)

Definition at line 561 of file gimbal_api_frame.h.

◆ GBL_API_CALL_N

#define GBL_API_CALL_N (   src,
  funcCall,
  ... 
)

Definition at line 551 of file gimbal_api_frame.h.

◆ GBL_API_CLEAR_LAST_RECORD

#define GBL_API_CLEAR_LAST_RECORD ( )

Definition at line 177 of file gimbal_api_frame.h.

◆ GBL_API_CONTEXT

#define GBL_API_CONTEXT ( )

Definition at line 25 of file gimbal_api_frame.h.

◆ GBL_API_DEBUG

#define GBL_API_DEBUG (   pFmt,
  ... 
)

Definition at line 379 of file gimbal_api_frame.h.

◆ GBL_API_DONE

#define GBL_API_DONE ( )

Definition at line 596 of file gimbal_api_frame.h.

◆ GBL_API_END

#define GBL_API_END ( )

Definition at line 606 of file gimbal_api_frame.h.

◆ GBL_API_END_BLOCK

#define GBL_API_END_BLOCK ( )

Definition at line 599 of file gimbal_api_frame.h.

◆ GBL_API_END_EMPTY

#define GBL_API_END_EMPTY ( )

Definition at line 610 of file gimbal_api_frame.h.

◆ GBL_API_ERRNO_CLEAR

#define GBL_API_ERRNO_CLEAR ( )

Definition at line 185 of file gimbal_api_frame.h.

◆ GBL_API_ERROR

#define GBL_API_ERROR (   pFmt,
  ... 
)

Definition at line 403 of file gimbal_api_frame.h.

◆ GBL_API_EVENT

#define GBL_API_EVENT (   event)

Definition at line 413 of file gimbal_api_frame.h.

◆ GBL_API_EVENT_2

#define GBL_API_EVENT_2 (   srcLoc,
  event 
)

Definition at line 410 of file gimbal_api_frame.h.

◆ GBL_API_EXT

#define GBL_API_EXT (   prefix,
  ... 
)

Definition at line 241 of file gimbal_api_frame.h.

◆ GBL_API_FRAME

#define GBL_API_FRAME ( )

Definition at line 24 of file gimbal_api_frame.h.

◆ GBL_API_FRAME_DECLARE

#define GBL_API_FRAME_DECLARE

Definition at line 23 of file gimbal_api_frame.h.

◆ GBL_API_FREE

#define GBL_API_FREE (   pData)

Definition at line 319 of file gimbal_api_frame.h.

◆ GBL_API_INFO

#define GBL_API_INFO (   pFmt,
  ... 
)

Definition at line 391 of file gimbal_api_frame.h.

◆ GBL_API_INLINE

#define GBL_API_INLINE (   MethodPrefix,
  ReturnType,
  ... 
)

Definition at line 214 of file gimbal_api_frame.h.

◆ GBL_API_INLINE_BEGIN

#define GBL_API_INLINE_BEGIN (   InitialRetValue)

Definition at line 218 of file gimbal_api_frame.h.

◆ GBL_API_INLINE_CALL

#define GBL_API_INLINE_CALL (   MethodPrefix,
  ... 
)

Definition at line 236 of file gimbal_api_frame.h.

◆ GBL_API_INLINE_CALL_

#define GBL_API_INLINE_CALL_ (   MethodPrefix,
  srcLoc,
  ... 
)

Definition at line 233 of file gimbal_api_frame.h.

◆ GBL_API_INLINE_END

#define GBL_API_INLINE_END ( )

Definition at line 223 of file gimbal_api_frame.h.

◆ GBL_API_INLINE_RETURN

#define GBL_API_INLINE_RETURN ( )

Definition at line 228 of file gimbal_api_frame.h.

◆ GBL_API_INLINE_RETVAL

#define GBL_API_INLINE_RETVAL ( )

Definition at line 212 of file gimbal_api_frame.h.

◆ GBL_API_LAST_RECORD

#define GBL_API_LAST_RECORD ( )

Definition at line 30 of file gimbal_api_frame.h.

◆ GBL_API_LAST_RESULT

#define GBL_API_LAST_RESULT ( )

Definition at line 31 of file gimbal_api_frame.h.

◆ GBL_API_LOG

#define GBL_API_LOG (   level,
  pFmt,
  ... 
)

Definition at line 376 of file gimbal_api_frame.h.

◆ GBL_API_LOG_

#define GBL_API_LOG_ (   src,
  level,
  pFmt,
  ... 
)

Definition at line 374 of file gimbal_api_frame.h.

◆ GBL_API_MALLOC

#define GBL_API_MALLOC (   ...)

Definition at line 274 of file gimbal_api_frame.h.

◆ GBL_API_MALLOC_2

#define GBL_API_MALLOC_2 (   src,
  size 
)

Definition at line 271 of file gimbal_api_frame.h.

◆ GBL_API_MALLOC_3

#define GBL_API_MALLOC_3 (   src,
  size,
  align 
)

Definition at line 268 of file gimbal_api_frame.h.

◆ GBL_API_MALLOC_4

#define GBL_API_MALLOC_4 (   src,
  size,
  align,
  dbgStr 
)

Definition at line 265 of file gimbal_api_frame.h.

◆ GBL_API_NEW

#define GBL_API_NEW (   ...)

Definition at line 286 of file gimbal_api_frame.h.

◆ GBL_API_NEW_2

#define GBL_API_NEW_2 (   src,
  type 
)

Definition at line 283 of file gimbal_api_frame.h.

◆ GBL_API_NEW_3

#define GBL_API_NEW_3 (   src,
  type,
  count 
)

Definition at line 280 of file gimbal_api_frame.h.

◆ GBL_API_NEW_4

#define GBL_API_NEW_4 (   src,
  type,
  count,
  dbgStr 
)

Definition at line 277 of file gimbal_api_frame.h.

◆ GBL_API_OBJECT

#define GBL_API_OBJECT ( )

Definition at line 26 of file gimbal_api_frame.h.

◆ GBL_API_PERROR

#define GBL_API_PERROR (   ...)

Definition at line 201 of file gimbal_api_frame.h.

◆ GBL_API_POP

#define GBL_API_POP (   ...)

Definition at line 357 of file gimbal_api_frame.h.

◆ GBL_API_POP_1

#define GBL_API_POP_1 (   srcLoc)

Definition at line 354 of file gimbal_api_frame.h.

◆ GBL_API_POP_2

#define GBL_API_POP_2 (   srcLoc,
  count 
)

Definition at line 349 of file gimbal_api_frame.h.

◆ GBL_API_PUSH

#define GBL_API_PUSH ( )

Definition at line 331 of file gimbal_api_frame.h.

◆ GBL_API_PUSH_

#define GBL_API_PUSH_ (   srcLoc,
  ... 
)

Definition at line 322 of file gimbal_api_frame.h.

◆ GBL_API_PUSH_VERBOSE

#define GBL_API_PUSH_VERBOSE (   ...)

Definition at line 343 of file gimbal_api_frame.h.

◆ GBL_API_PUSH_VERBOSE_N

#define GBL_API_PUSH_VERBOSE_N (   srcLoc,
  pFmt,
  ... 
)

Definition at line 337 of file gimbal_api_frame.h.

◆ GBL_API_REALLOC

#define GBL_API_REALLOC (   ...)

Definition at line 304 of file gimbal_api_frame.h.

◆ GBL_API_REALLOC_3

#define GBL_API_REALLOC_3 (   src,
  pData,
  newSize 
)

Definition at line 301 of file gimbal_api_frame.h.

◆ GBL_API_REALLOC_4

#define GBL_API_REALLOC_4 (   src,
  pData,
  newSize,
  newAlign 
)

Definition at line 298 of file gimbal_api_frame.h.

◆ GBL_API_RECORD

#define GBL_API_RECORD ( )

Definition at line 27 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_ASSERT

#define GBL_API_RECORD_ASSERT (   record)

Definition at line 447 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_ASSERT_

#define GBL_API_RECORD_ASSERT_ (   record,
  test 
)

Definition at line 424 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_ASSERT_CONDITIONAL_

#define GBL_API_RECORD_ASSERT_CONDITIONAL_ (   enabled,
  record,
  test 
)

Definition at line 430 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_ASSERT_ERROR

#define GBL_API_RECORD_ASSERT_ERROR (   record)

Definition at line 438 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_ASSERT_PARTIAL

#define GBL_API_RECORD_ASSERT_PARTIAL (   record)

Definition at line 434 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_ASSERT_UNKNOWN

#define GBL_API_RECORD_ASSERT_UNKNOWN (   record)

Definition at line 443 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_HANDLER

#define GBL_API_RECORD_HANDLER (   record)

Definition at line 526 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LAST_RECORD

#define GBL_API_RECORD_LAST_RECORD (   record)

Definition at line 517 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LAST_RECORD_

#define GBL_API_RECORD_LAST_RECORD_ (   prefix,
  record 
)

Definition at line 495 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LAST_RECORD_CONDITIONAL_

#define GBL_API_RECORD_LAST_RECORD_CONDITIONAL_ (   prefix,
  record 
)

Definition at line 504 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LAST_RECORD_ERROR

#define GBL_API_RECORD_LAST_RECORD_ERROR (   record)

Definition at line 511 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LAST_RECORD_PARTIAL

#define GBL_API_RECORD_LAST_RECORD_PARTIAL (   record)

Definition at line 508 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LAST_RECORD_UNKNOWN

#define GBL_API_RECORD_LAST_RECORD_UNKNOWN (   record)

Definition at line 514 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LOG

#define GBL_API_RECORD_LOG (   record)

Definition at line 486 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LOG_

#define GBL_API_RECORD_LOG_ (   prefix,
  record 
)

Definition at line 458 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LOG_CONDITIONAL_

#define GBL_API_RECORD_LOG_CONDITIONAL_ (   prefix,
  record 
)

Definition at line 469 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LOG_ERROR

#define GBL_API_RECORD_LOG_ERROR (   record)

Definition at line 478 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LOG_PARTIAL

#define GBL_API_RECORD_LOG_PARTIAL (   record)

Definition at line 474 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_LOG_UNKNOWN

#define GBL_API_RECORD_LOG_UNKNOWN (   record)

Definition at line 482 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_SET

#define GBL_API_RECORD_SET (   ...)

Definition at line 547 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_SET_5

#define GBL_API_RECORD_SET_5 (   file,
  func,
  line,
  col,
  result 
)

Definition at line 544 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_SET_6

#define GBL_API_RECORD_SET_6 (   file,
  func,
  line,
  col,
  result,
  pFmt 
)

Definition at line 541 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_SET_JMP_CND

#define GBL_API_RECORD_SET_JMP_CND (   expr,
  result,
  label,
  ... 
)

Definition at line 85 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_SET_JMP_CND_

#define GBL_API_RECORD_SET_JMP_CND_ (   expr,
  result,
  label,
  srcLoc,
  ... 
)

Definition at line 73 of file gimbal_api_frame.h.

◆ GBL_API_RECORD_SET_N

#define GBL_API_RECORD_SET_N (   file,
  func,
  line,
  col,
  result,
  ... 
)

Definition at line 533 of file gimbal_api_frame.h.

◆ GBL_API_RENEW

#define GBL_API_RENEW (   ...)

Definition at line 316 of file gimbal_api_frame.h.

◆ GBL_API_RENEW_3

#define GBL_API_RENEW_3 (   src,
  ptr,
  type 
)

Definition at line 313 of file gimbal_api_frame.h.

◆ GBL_API_RENEW_4

#define GBL_API_RENEW_4 (   src,
  ptr,
  type,
  count 
)

Definition at line 310 of file gimbal_api_frame.h.

◆ GBL_API_RENEW_5

#define GBL_API_RENEW_5 (   src,
  ptr,
  type,
  count,
  dbgStr 
)

Definition at line 307 of file gimbal_api_frame.h.

◆ GBL_API_RESULT

#define GBL_API_RESULT ( )

Definition at line 28 of file gimbal_api_frame.h.

◆ GBL_API_SOURCE

#define GBL_API_SOURCE ( )

Definition at line 29 of file gimbal_api_frame.h.

◆ GBL_API_SOURCE_LOC_PUSH

#define GBL_API_SOURCE_LOC_PUSH (   srcLoc)

Definition at line 55 of file gimbal_api_frame.h.

◆ GBL_API_SOURCE_POP

#define GBL_API_SOURCE_POP ( )

Definition at line 61 of file gimbal_api_frame.h.

◆ GBL_API_SOURCE_PUSH

#define GBL_API_SOURCE_PUSH (   FILE,
  FUNCTION,
  LINE,
  COLUMN 
)

Definition at line 58 of file gimbal_api_frame.h.

◆ GBL_API_SOURCE_SCOPED

#define GBL_API_SOURCE_SCOPED (   CALL,
  loc,
  ... 
)

Definition at line 64 of file gimbal_api_frame.h.

◆ GBL_API_STACK_FRAME_SOURCE_POP

#define GBL_API_STACK_FRAME_SOURCE_POP (   pStackFrame)

Definition at line 47 of file gimbal_api_frame.h.

◆ GBL_API_STACK_FRAME_SOURCE_PUSH

#define GBL_API_STACK_FRAME_SOURCE_PUSH (   pStackFrame,
  current 
)

Definition at line 44 of file gimbal_api_frame.h.

◆ GBL_API_VERBOSE

#define GBL_API_VERBOSE (   pFmt,
  ... 
)

Definition at line 385 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY

#define GBL_API_VERIFY (   ...)

Definition at line 104 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_

#define GBL_API_VERIFY_ (   expr,
  result,
  srcLoc,
  ... 
)

Definition at line 90 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_3

#define GBL_API_VERIFY_3 (   srcLoc,
  expr,
  result 
)

Definition at line 101 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_ARG

#define GBL_API_VERIFY_ARG (   ...)

Definition at line 144 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_ARG_2

#define GBL_API_VERIFY_ARG_2 (   src,
  expr 
)

Definition at line 141 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_ARG_N

#define GBL_API_VERIFY_ARG_N (   srcLoc,
  expr,
  ... 
)

Definition at line 138 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_CALL

#define GBL_API_VERIFY_CALL (   ...)

Definition at line 570 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_EXPRESSION

#define GBL_API_VERIFY_EXPRESSION (   ...)

Definition at line 118 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_EXPRESSION_2

#define GBL_API_VERIFY_EXPRESSION_2 (   src,
  expr 
)

Definition at line 115 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_EXPRESSION_N

#define GBL_API_VERIFY_EXPRESSION_N (   srcLoc,
  expr,
  ... 
)

Definition at line 112 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_LAST_RECORD

#define GBL_API_VERIFY_LAST_RECORD ( )

Definition at line 167 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_N

#define GBL_API_VERIFY_N (   srcLoc,
  expr,
  result,
  ... 
)

Definition at line 98 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_POINTER

#define GBL_API_VERIFY_POINTER (   ...)

Definition at line 131 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_POINTER_2

#define GBL_API_VERIFY_POINTER_2 (   src,
  expr 
)

Definition at line 128 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_POINTER_N

#define GBL_API_VERIFY_POINTER_N (   srcLoc,
  expr,
  ... 
)

Definition at line 125 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_TYPE

#define GBL_API_VERIFY_TYPE (   ...)

Definition at line 160 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_TYPE_2

#define GBL_API_VERIFY_TYPE_2 (   srcLoc,
  actualType 
)

Definition at line 157 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_TYPE_3

#define GBL_API_VERIFY_TYPE_3 (   srcLoc,
  actualType,
  expectedType 
)

Definition at line 154 of file gimbal_api_frame.h.

◆ GBL_API_VERIFY_TYPE_N

#define GBL_API_VERIFY_TYPE_N (   srcLoc,
  actualType,
  expectedType,
  ... 
)

Definition at line 151 of file gimbal_api_frame.h.

◆ GBL_API_WARN

#define GBL_API_WARN (   pFmt,
  ... 
)

Definition at line 397 of file gimbal_api_frame.h.

◆ GBL_SOURCE_LOCATION

#define GBL_SOURCE_LOCATION (   FILE,
  FUNCTION,
  LINE,
  COL 
)

Definition at line 42 of file gimbal_api_frame.h.

◆ GBL_SRC_COL

#define GBL_SRC_COL

Definition at line 38 of file gimbal_api_frame.h.

◆ GBL_SRC_FILE

#define GBL_SRC_FILE

Definition at line 35 of file gimbal_api_frame.h.

◆ GBL_SRC_FN

#define GBL_SRC_FN

Definition at line 36 of file gimbal_api_frame.h.

◆ GBL_SRC_LN

#define GBL_SRC_LN

Definition at line 37 of file gimbal_api_frame.h.

◆ GBL_SRC_LOC

#define GBL_SRC_LOC

Definition at line 39 of file gimbal_api_frame.h.

◆ GblSrcLoc

#define GblSrcLoc

Definition at line 40 of file gimbal_api_frame.h.

Function Documentation

◆ GBL_API_INLINE_LOG_()

static GBL_RESULT GBL_API_INLINE_LOG_ ( GblStackFrame GBL_API_FRAME_NAME,
GblSourceLocation  srcLoc,
GBL_LOG_LEVEL  level,
const char *  pFmt,
  ... 
)
inlinestatic

Definition at line 363 of file gimbal_api_frame.h.

363 {
364 GBL_API_INLINE_BEGIN(GBL_RESULT_SUCCESS);
365 va_list varArgs;
366 va_start(varArgs, pFmt);
367
368 GBL_API_EXT(LOG_WRITE, level, pFmt, varArgs);
369 va_end(varArgs);
370 GBL_API_INLINE_END();
371 GBL_API_INLINE_RETURN();
372}

◆ GBL_API_INLINE_MALLOC_()

static void * GBL_API_INLINE_MALLOC_ ( GblStackFrame GBL_API_FRAME_NAME,
GblSourceLocation  srcLoc,
GblSize  size,
GblSize  align,
const char *  pDebugStr 
)
inlinestatic

Definition at line 252 of file gimbal_api_frame.h.

252 {
253 GBL_API_INLINE_BEGIN(GBL_NULL);
254 if(align == 0) {
255 align = GBL_ALIGNOF(GBL_MAX_ALIGN_T);
256 size = gblAlignedAllocSizeDefault(size);
257 }
258 GBL_ASSERT(size % align == 0);
259 GBL_API_EXT(MALLOC, size, align, pDebugStr, &GBL_API_INLINE_RETVAL());
260 GBL_API_INLINE_END();
261 // modify/set return value based on result
262 GBL_API_INLINE_RETURN();
263}

◆ GBL_API_INLINE_REALLOC_()

static void * GBL_API_INLINE_REALLOC_ ( GblStackFrame GBL_API_FRAME_NAME,
GblSourceLocation  srcLoc,
void *  pData,
GblSize  newSize,
GblSize  newAlign 
)
inlinestatic

Definition at line 289 of file gimbal_api_frame.h.

289 {
290 GBL_API_INLINE_BEGIN(NULL);
291
292 GBL_API_EXT(REALLOC, pData, newSize, newAlign, &GBL_API_INLINE_RETVAL());
293 GBL_API_INLINE_END();
294 // modify/set return value based on result
295 GBL_API_INLINE_RETURN();
296}

◆ GBL_ERRNO_RESULT()

static GBL_RESULT GBL_ERRNO_RESULT ( int  ernum)
inlinestatic

Definition at line 204 of file gimbal_api_frame.h.

204 {
205 switch(ernum) {
206 case 0: return GBL_RESULT_SUCCESS;
207 default: return GBL_RESULT_ERROR;
208 }
209}