forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 453
/
Copy pathcompute_units.h
42 lines (35 loc) · 901 Bytes
/
compute_units.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
/**
* @brief Solana logging utilities
*/
#include <sol/types.h>
#include <sol/string.h>
#include <sol/entrypoint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Prints a string to stdout
*/
/* DO NOT MODIFY THIS GENERATED FILE. INSTEAD CHANGE platform-tools-sdk/sbf/c/inc/sol/inc/compute_units.inc AND RUN `cargo run --bin gen-headers` */
#ifndef SOL_SBPFV3
uint64_t sol_remaining_compute_units();
#else
typedef uint64_t(*sol_remaining_compute_units_pointer_type)();
static uint64_t sol_remaining_compute_units() {
sol_remaining_compute_units_pointer_type sol_remaining_compute_units_pointer = (sol_remaining_compute_units_pointer_type) 3991886574;
return sol_remaining_compute_units_pointer();
}
#endif
#ifdef SOL_TEST
/**
* Stub functions when building tests
*/
uint64_t sol_remaining_compute_units() {
return UINT64_MAX;
}
#endif
#ifdef __cplusplus
}
#endif
/**@}*/