Top Tweets for #Endif
@oWbEHK9002FsAuK @ebiebi_pg 某社のルールでCでCVS/SVN管理ソースでも
#IF 0 /* 20XX/YY/ZZ 修正者 修正管理ID */
> 変更前(この中に更にネストして同じような#IF 0が何個も塗り重ねられている)
#ELSE
変更後コード
#ENDIF
とか有りましたね・・・
読みづらくて自前でPerlとかで取っ払うツールとか作ってました🫠
@nicbarkeragain Why not
#if 0
# this is a valid shell script
cc -o/tmp/script script.c && exec /tmp/script
#endif
#if 0
# Dynamically resolve filename using $0 and append PID to prevent runtime conflicts
OUT="/tmp/$(basename "$0")_$$"
cc -o "$OUT" "$0" && "$OUT" "$@"
RET=$?
rm -f "$OUT"
exit $RET
#endif
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Executable path: %s\n", argv[0]);
if (argc > 1) {
printf("First argument: %s\n", argv[1]);
}
return 0;
}
Lowkey okay with this guy being the last real engineer
@Arikalabs #if INTPTR_MAX == INT64_MAX
run_64_bit_code()
#else
run_32_bit_code()
#endif
C-style preprocessor will make it clearly visible when reading that there's not a real branch there.
You can add { } too if you like them.
@specoolar This is the PR, but the windows build is currently broken: https://t.co/vHseXX0F6o I needed to add
#ifdef hyper /* MSVC defines. */
# undef hyper
#endif
after the includes in DNA_node_types.h to make it build
I haven't told the full story yet, but I came to the same conclusion back in May 2025 when I started doing an audit of `coldcard/firmware`.
I wanted to figure out conclusively where the CC RNG was getting sourced from, and found that it backed up to some shady library called libngu (https://t.co/wQu3wOB7cb) that had literally 6 stars on github and was maintained solely by a pseudoanon tranny.
I knew from past experience that linking to libsecp256k1 from Python was pretty easy, which seemed to be the stated purpose of the library use, and so I was confused about why it was there.
I sent a report to the CC team that I had doubts about whether the true RNG was actually in use, and pointed out that the hardcoded yasmarang constants in libngu were sloppy. I advised they rip the whole thing out and link against libsecp256k1 directly.
I was told that if something was wrong "we'd already know about it by now" and that everything was properly configured for the real boards.
I didn't follow up rigorously, which was a horrible mistake on my part.

This was an important bit not in the article:
‘’’
#ifndef MICROPY_HW_ENABLE_RNG
#error "get a HW TRNG plz"
#endif
‘’’
That ifndef is a defined check not a truth check. Made people think the rng was enabled. This was a big factor.
commit msg length is not a metric anyone tracks. Multi-line commit messages are fairly recent. I would encourage readers to not get too wrapped up in “works” being too short being some smoking gun (seeing it in some comments). Its very common for example to have multiple commits in a single pr that has a bigger pr message or comes with a bigger message out of band.
The bigger misses here: an existence check instead of a truth check masked the fallback, a software fallback was available at all and with the same function signature meaning that the authors didnt know which symbol was being resolved, there should have been tests that the hardware was being lit up. lack of assertions or checks at runtime that the good rng was used or code to fail closed if it wasnt (iow the code should have failed to produce a value if the trng wasnt being used). And then yeah there should have been a much smaller and more targetted change to swap out the rng invocation since its security critical.
@jimmysong #ifdef DO_THE_RIGHT_THING
do_the_wright_thing();
#else
lose_thousands_of_bitcoin();
#endif
@SyntaxError2505 @zuhaitz_dev ```#if 0 #!/bin/sh gcc file.c -o prog && ./prog exit #endif```
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241.5M followers

Barack Obama 
@barackobama
118.9M followers

Cristiano Ronaldo 
@cristiano
114.6M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
107.1M followers

Rihanna 
@rihanna
98.7M followers

NASA 
@nasa
92.3M followers

Justin Bieber 
@justinbieber
91.8M followers

KATY PERRY 
@katyperry
90.1M followers

Taylor Swift 
@taylorswift13
84M followers

Lady Gaga 
@ladygaga
75.5M followers

Virat Kohli 
@imvkohli
73.5M followers

Kim Kardashian 
@kimkardashian
70.9M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
66.6M followers

Bill Gates 
@billgates
65.3M followers

Selena Gomez 
@selenagomez
63.1M followers

The Ellen Show
@theellenshow
62.2M followers

CNN 
@cnn
61.7M followers

X 
@x
60.7M followers




















