Skip to content

Instantly share code, notes, and snippets.

View interval1066's full-sized avatar
🏠
Working from home

interval1066

🏠
Working from home
  • None
View GitHub Profile
@interval1066
interval1066 / pmgr.h
Created July 18, 2023 22:47
Constantly trying to find was to make things simpler here's a proposal for a pointer manager for C projects
#pragma once
#include <stdlib.h>
#include <stddef.h>
typedef struct
{
void (*print)(void*);
void (*destroy)(void*);
} BaseObject;
#include <iostream>
#include <cstdlib>
#include <memory>
using namespace std;
/* Link list node */
class Node
{
public:
@interval1066
interval1066 / Makefile
Last active September 2, 2020 03:45 — forked from Alia5/Signals.h
C++11 Signals/Slots implementation
# This is a recursive makefile- do not use in production
# convert to canonical make chain when time permits
#
# recursive file search
rfilelist=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rfilelist,$d/,$2))
# the name of program
TARGET = sigslot
CC = g++
# C++ compiler flags