Assembled 2
A column based text editor
Loading...
Searching...
No Matches
Classes | Macros | Variables
global.h File Reference
#include <editor/syntax/syntax.h>
#include <editor/buffer/editor.h>
#include <interface/interface.h>
#include <includes.h>

Go to the source code of this file.

Classes

struct  AS_GlobalCtx
 

Macros

#define AS_VERSION_MAJ   2
 
#define AS_VERSION_MIN   0
 
#define TARGET_FPS   (double)(1.0/60.0)
 The number of frames to be drawn per second.
 
#define max(a, b)
 Get the bigger value between a and b.
 
#define min(a, b)
 Get the smaller value between a and b.
 

Variables

struct AS_GlobalCtx as_ctx
 

Detailed Description

Author
awewsomegamer awews.nosp@m.omeg.nosp@m.amer@.nosp@m.gmai.nosp@m.l.com

LICENSE

Assembled - Column based text editor Copyright (C) 2023-2024 awewsomegamer

This file is apart of Assembled.

Assembled is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

DESCRIPTION

The global header file. This gives the editor and interface halves access to each other through the variable as_ctx.

Macro Definition Documentation

◆ max

#define max ( a,
b )
Value:
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })

Get the bigger value between a and b.

◆ min

#define min ( a,
b )
Value:
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })

Get the smaller value between a and b.

Variable Documentation

◆ as_ctx

struct AS_GlobalCtx as_ctx
extern

The global context variable.