system.h 1.1 KB
Newer Older
1 2 3 4
/**
 *  @file
 *  @copyright defined in eos/LICENSE.txt
 */
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#pragma once
#include <eoslib/types.h>

extern "C" {

   /**
    * @defgroup systemapi System API
    * @ingroup contractdev
    * @brief Define API for interating with system level intrinsics
    *
    */

   /**
    * @defgroup systemcapi System C API
    * @ingroup systemapi
    * @brief Define API for interating with system level intrinsics
    *
    * @{
    */

   /**
26 27
    *  Aborts processing of this action and unwinds all pending changes if the test condition is true
    *  @brief Aborts processing of this action and unwinds all pending changes
28
    *  @param test - 0 to abort, 1 to ignore
29
    *  @param cstr - a null terminated action to explain the reason for failure
30 31 32 33 34

    */
   void  assert( uint32_t test, const char* cstr );

   /**
35
    *  Returns the time in seconds from 1970 of the last accepted block (not the block including this action)
36 37 38
    *  @brief Get time of the last accepted block
    *  @return time in seconds from 1970 of the last accepted block
    */
39
   time  now();
40 41 42 43

   ///@ } systemcapi
}