FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
basics.h File Reference

This is a basic header files with FrostWing specific short forms and basically a good for life header. More...

#include <stdint.h>
#include <stddef.h>
Include dependency graph for basics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define null   NULL
#define GiB   *1024*1024*1024ULL
#define MiB   *1024*1024ULL
#define KiB   *1024ULL
#define yes   true
#define no   false
#define attribute   __attribute__
#define Ghz   *1000000000ULL
#define Mhz   *1000000ULL
#define OS_NAME   "FrostWing OS"
#define EOF   (-1)
#define deprecated_message(msg)
#define assert(expression, file, line)
 Assert Definition.

Typedefs

typedef uintptr_t int_pointer
typedef uint64_t int64
typedef uint32_t int32
typedef uint16_t int16
typedef uint8_t int8
typedef const char * cstring
typedef char * string

Detailed Description

This is a basic header files with FrostWing specific short forms and basically a good for life header.

Author
Pradosh (prado.nosp@m.shga.nosp@m.me@gm.nosp@m.ail..nosp@m.com)
Version
0.1
Date
2023-12-10

Definition in file basics.h.

Macro Definition Documentation

◆ assert

#define assert ( expression,
file,
line )
Value:
if(!(expression)){printf("\x1b[31mAssert Failed! at \x1b[36m%s:%d\x1b[0m => \x1b[32m%s\x1b[0m", file, line, #expression);}

Assert Definition.

Authors
GAMINGNOOB (Coded Original) & Pradosh (Modified it)

Definition at line 53 of file basics.h.

◆ attribute

#define attribute   __attribute__

Definition at line 32 of file basics.h.

◆ deprecated_message

#define deprecated_message ( msg)

Definition at line 46 of file basics.h.

◆ EOF

#define EOF   (-1)

Definition at line 39 of file basics.h.

◆ Ghz

#define Ghz   *1000000000ULL

Definition at line 34 of file basics.h.

◆ GiB

#define GiB   *1024*1024*1024ULL

Definition at line 25 of file basics.h.

◆ KiB

#define KiB   *1024ULL

Definition at line 27 of file basics.h.

◆ Mhz

#define Mhz   *1000000ULL

Definition at line 35 of file basics.h.

◆ MiB

#define MiB   *1024*1024ULL

Definition at line 26 of file basics.h.

◆ no

#define no   false

Definition at line 30 of file basics.h.

◆ null

#define null   NULL

Definition at line 20 of file basics.h.

◆ OS_NAME

#define OS_NAME   "FrostWing OS"

Definition at line 37 of file basics.h.

◆ yes

#define yes   true

Definition at line 29 of file basics.h.

Typedef Documentation

◆ cstring

typedef const char* cstring

Definition at line 22 of file basics.h.

◆ int16

typedef uint16_t int16

Definition at line 17 of file basics.h.

◆ int32

typedef uint32_t int32

Definition at line 16 of file basics.h.

◆ int64

typedef uint64_t int64

Definition at line 15 of file basics.h.

◆ int8

typedef uint8_t int8

Definition at line 18 of file basics.h.

◆ int_pointer

typedef uintptr_t int_pointer

Definition at line 14 of file basics.h.

◆ string

typedef char* string

Definition at line 23 of file basics.h.