Photon 1.0.0
Loading...
Searching...
No Matches
Config.hpp File Reference
#include <cassert>
#include <clocale>
#include <codecvt>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <spdlog/spdlog.h>
#include <uuid/uuid.h>
import <AppKit/AppKit.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <algorithm>
#include <array>
#include <concepts>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <thread>
#include <tuple>

Go to the source code of this file.

Namespaces

namespace  Photon
 This file is also about defining core js concepts.
 

Macros

#define SD_BOTH   SHUT_RDWR
 
#define SD_SEND   SHUT_WR
 
#define SD_READ   SHUT_RD
 
#define INVALID_SOCKET   ((uintptr_t)-1)
 
#define PHOTON_API
 
#define PHOTON_ENV   getenv
 
#define PHOTON_COPY_DELETE(KLASS)
 
#define PHOTON_COPY_DEFAULT(KLASS)
 
#define PHOTON_MOVE_DELETE(KLASS)
 
#define PHOTON_MOVE_DEFAULT(KLASS)
 
#define PHOTON_SLEEP   sleep
 
#define PHOTON_ASSERT(expression)   assert(expression)
 

Typedefs

typedef uint16_t uuid_string_t[37]
 
typedef double Photon::Double
 
typedef float Photon::Real
 
typedef std::int32_t Photon::Int32
 
typedef std::uint32_t Photon::UInt32
 
typedef std::int64_t Photon::Int64
 
typedef std::uint64_t Photon::UInt64
 
typedef bool Photon::Bool
 

Macro Definition Documentation

◆ INVALID_SOCKET

#define INVALID_SOCKET   ((uintptr_t)-1)

◆ PHOTON_API

#define PHOTON_API

◆ PHOTON_ASSERT

#define PHOTON_ASSERT (   expression)    assert(expression)

◆ PHOTON_COPY_DEFAULT

#define PHOTON_COPY_DEFAULT (   KLASS)
Value:
KLASS& operator=(const KLASS&) = default; \
KLASS(const KLASS&) = default;

◆ PHOTON_COPY_DELETE

#define PHOTON_COPY_DELETE (   KLASS)
Value:
KLASS& operator=(const KLASS&) = delete; \
KLASS(const KLASS&) = delete;

◆ PHOTON_ENV

#define PHOTON_ENV   getenv

◆ PHOTON_MOVE_DEFAULT

#define PHOTON_MOVE_DEFAULT (   KLASS)
Value:
KLASS& operator=(KLASS&&) = default; \
KLASS(KLASS&&) = default;

◆ PHOTON_MOVE_DELETE

#define PHOTON_MOVE_DELETE (   KLASS)
Value:
KLASS& operator=(KLASS&&) = delete; \
KLASS(KLASS&&) = delete;

◆ PHOTON_SLEEP

#define PHOTON_SLEEP   sleep

◆ SD_BOTH

#define SD_BOTH   SHUT_RDWR

◆ SD_READ

#define SD_READ   SHUT_RD

◆ SD_SEND

#define SD_SEND   SHUT_WR

Typedef Documentation

◆ uuid_string_t

typedef unsigned short uuid_string_t