mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-05-10 13:24:06 +02:00
files forgotten to add for last commit
This commit is contained in:
parent
b5f8c383c5
commit
7d26ff5d5a
15
backend/src/panic.h
Normal file
15
backend/src/panic.h
Normal file
@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define PANIC(...) \
|
||||
(fputs("\x1b[1;31mpanic\x1b[97m: ", stderr), fprintf(stderr, __VA_ARGS__), \
|
||||
fprintf(stderr, "\x1b[0m\n\tin %s:%d\n\tat %s:%d\n", __func__, \
|
||||
__LINE__, __FILE__, __LINE__), \
|
||||
exit(1), 0)
|
||||
|
||||
__attribute__((unused)) static inline void ___include_user(void)
|
||||
{
|
||||
PANIC("");
|
||||
}
|
10
backend/src/session.h
Normal file
10
backend/src/session.h
Normal file
@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "collection.h"
|
||||
|
||||
typedef struct {
|
||||
int64_t user_id;
|
||||
} Session;
|
||||
|
||||
DEFINE_VEC(Session, SessionVec, session_vec, 16)
|
Loading…
x
Reference in New Issue
Block a user