@eniko @dalias
maybe intellisense would work better with
#define blit(dest, x, y, source, transparentIndex) my_blit(dest, x, y, source, transparentIndex)

TBH even with FORCE_INLINE the function looks like trouble

@eniko My workaround would be just putting #define blit my_blit at the top of the file so you can still use the naming you prefer without the link error.

we have defer at home:

#define GLUE_(a, b) a##b
#define GLUE(a, b) GLUE_(a, b)

template<typename Closure>
struct DeferStruct {
Closure c;
DeferStruct(Closure &&c) : c(std::move(c)) {}
~DeferStruct() { c(); }
};

#define defer [[gnu::nodebug]] DeferStruct GLUE(_defer_stmt_, __COUNTER__)= [&]

I am such a dork.

#include <iostream>
using namespace std;

#DEFINE ADNAUSEUM 1

class fishheads {
private:
int yum = 0;
int eatThemUp();
public:
fishheads();
~fishheads();
}

fishheads:fishheads () {
return;
}

fishheads:~fishheads () {
yum = eatThemUp();
}

fishheads:eatThemUp () {
return 1;
}

int main(void) {
while (ADNAUSEUM) {
rolyPoly = new fishheads;
destroy rolyPoly;
}
return;
}

WT32-Eth01 NTP Clock

arduino-cli sketch new wt32ntpclock cd wt32ntpclock/ nano wt32ntpclock.ino wt32ntpclock.ino #include #include // WT32-ETH01 Hardware Pins for ESP32 Core 3.x #define ETH_PHY_TYPE ETH_PHY_LAN8720 #define ETH_PHY_ADDR 1 #define ETH_PHY_MDC 23 #define ETH_PHY_MDIO 18 #define ETH_PHY_POWER 16 #define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN const char* ntpServer = "pool.ntp.org"; const char* TZ_INFO = "ICT-7"; // Bangkok/Asia Time (UTC+7) void…

https://nanosofttech.wordpress.com/2026/03/28/wt32-eth01-ntp-clock/

WT32-Eth01 NTP Clock

arduino-cli sketch new wt32ntpclock cd wt32ntpclock/ nano wt32ntpclock.ino wt32ntpclock.ino #include <ETH.h> #include <time.h> // WT32-ETH01 Hardware Pins for ESP32 Core 3.x #define ETH…

NanoSoftTech

so i defined this before including allegro.h:

#define AL_INLINE(ret, func, args, ...) static inline __attribute__((always_inline)) ret func args __VA_ARGS__

you can get rid of the __attribute__((always_inline)) i guess if you want

Former FDP member Volker Wissing says the party must clarify its substantive direction. "The key question is what offer the party will make to citizens in the f... https://news.osna.fm/?p=39787 | #news #amid #define #direction #fdp
Wissing Urges FDP to Define its Direction Amid Rightward Shift. - Osna.FM

Wissing urges the German FDP to clarify its policy direction, demanding clearer positions on key issues and a renewed focus on fiscal responsibility.

Osna.FM
#define free(buf) /**/

@dhemery decades ago, a contractor, in response to a coding guideline to prefer symbolic constants over raw numbers, started doing this:

#define ONE 1
#define TWO 2

I quizzed him about programming and had to recommend firing him.

Thought Of The Day #140: Be honest with yourself in what you need help with and what you do well. #recognition #define #character [ March 19th 2026 ] https://rons-home.net/en/living-life-lab/personal-growth/thought-of-the-day/thought-of-the-day/2026/3/19
Thought #140 :: Thought Of The Day :: Thought Of The Day :: Personal Growth :: Living Life Lab :: Ron's Home

Each Thought Of The Day is an opportunity for you to reflect on your life, who you want to become, your identify and purpose in life.