libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
environment.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/types.h>
13 
14 typedef enum {
15  KERNEL_VERSION_INVALID,
16  KERNEL_VERSION_100,
17  KERNEL_VERSION_200,
18  KERNEL_VERSION_300,
19  KERNEL_VERSION_400,
20  KERNEL_VERSION_500,
21  KERNEL_VERSION_MAX = KERNEL_VERSION_500,
22 } kernel_version_t;
23 
27 kernel_version_t env_get_kernel_version();
28 
29 
33 void *env_get_stack_top();
34 
35 #ifdef __cplusplus
36 }
37 #endif
Various system types.
void * env_get_stack_top()
Gets a pointer to the top of the stack.
kernel_version_t env_get_kernel_version()
Returns the current kernel version, for feature-detection purposes.