High Performance OPC UA Server SDK  1.4.1.263
platform

General platform specfic defines and initialization/cleanup for platform layer. More...

Macros

#define UA_PANIC(msg)   ua_p_platform_panic(msg, __FILE__, __LINE__)
 Panic for stopping applications in fatal error scenarios.
 
#define UA_TEST_ASSERT(condition, msg)
 This maro is only used for testing and not in production. More...
 

Functions

int ua_platform_init (void)
 Initialize the platform layer. More...
 
int ua_platform_cleanup (void)
 Cleanup the platform layer. More...
 

Detailed Description

General platform specfic defines and initialization/cleanup for platform layer.

Macro Definition Documentation

◆ UA_TEST_ASSERT

#define UA_TEST_ASSERT (   condition,
  msg 
)

This maro is only used for testing and not in production.

It stops the code in certain situations using abort() also when compiled in release mode. In production this macro will be an emtpty define. It can be enabled by compiling with PLATFORM_ENABLE_TEST_ASSERT=on.

Function Documentation

◆ ua_platform_cleanup()

int ua_platform_cleanup ( void  )

Cleanup the platform layer.

Returns
Zero on success or errorcode on failure.

◆ ua_platform_init()

int ua_platform_init ( void  )

Initialize the platform layer.

Returns
Zero on success or errorcode on failure.