Fast and reasonably complete (framebuffer) terminal emulator (Zig fork)

Add C++ guards to headers

mintsuki 54238d9e 3bedd3e8

Changed files
+16
backends
+8
backends/framebuffer.h
···
#ifndef _TERM_FRAMEBUFFER_H
#define _TERM_FRAMEBUFFER_H
+
#ifdef __cplusplus
+
extern "C" {
+
#endif
+
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
···
size_t font_scale_x, size_t font_scale_y,
size_t margin
);
+
+
#ifdef __cplusplus
+
}
+
#endif
#endif
+8
term.h
···
#ifndef _TERM_H
#define _TERM_H
+
#ifdef __cplusplus
+
extern "C" {
+
#endif
+
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
···
void term_context_reinit(struct term_context *ctx);
void term_write(struct term_context *ctx, const char *buf, size_t count);
+
+
#ifdef __cplusplus
+
}
+
#endif
#endif