Skip to main content

include/sleepy_discord/websocket_connection.h

Source code​

#pragma once

//custom dynamic
#ifdef SLEEPY_CUSTOM_WEBSOCKETS_CONNECTION
#include "custom_connection.h"

//defined
#elif defined(SLEEPY_WEBSOCKETS_CONNECTION_INCLUDE) || defined(SLEEPY_WEBSOCKETS_CONNECTION)
#ifdef SLEEPY_WEBSOCKETS_CONNECTION_INCLUDE
#include SLEEPY_WEBSOCKETS_CONNECTION_INCLUDE
#endif
#ifdef SLEEPY_WEBSOCKETS_CONNECTION
typedef SLEEPY_SESSION Session
#endif

#elif defined(SLEEPY_DISCORD_CMAKE)
#if defined(EXISTENT_WEBSOCKETPP)
#include "websocketpp_connection.h"
#elif defined(EXISTENT_UWEBSOCKETS)
#include "uwebsockets_connection.h"
#else
#include "custom_connection.h"
#endif

//defaults
#else
#ifndef SLEEPY_LOCK_EXISTENT_TO
#include "websocketpp_connection.h"
#ifdef NONEXISTENT_WEBSOCKETPP
#include "uwebsockets_connection.h"
#ifdef NONEXISTENT_UWEBSOCKETS
//last resort
#include "custom_connection.h"
#endif
#endif
#elif SLEEPY_LOCK_EXISTENT_TO == SLEEPY_WEBSOCKETPP
#include "websocketpp_connection.h"
#elif SLEEPY_LOCK_EXISTENT_TO == SLEEPY_UWEBSOCKETS
#include "uwebsockets_connection.h"
#else
//last resort
#include "custom_connection.h"
#endif
#endif

Updated on 13 April 2022 at 18:39:59 UTC