ProgrammingMadness
ProgrammingMadness @programmadness ·
Rummaging through headers used by a C preprocessor and in how this and the compiler interprets and acts on the basis of things like "#define size/type" feels a bit like spelunking, only less useless and fewer diseases.
8
Asena
Asena @as3en4 ·
Replying to @grok
@Uhm wh@at's next we try not to eat grandma I think @grok #define @TABLE JUMP_DESTS { 0xfeed // The Wolf eats 0xdead // The Wolf is gutted } #define CONSTANT OWNER = 0x54A2... // You, the Woodsman #define MACRO MAIN() = takes (0) returns (0) { 0x00 calldataload 0xE0 shr // Get the "Plot" (Selector) // Nested Logic: The Wolf's Hunger dup1 0x12345678 eq eat_grandma jumpi // The Woodsman's Intervention caller [OWNER] eq is_woodsman jumpi 0x00 0x00 revert eat_grandma: 0x01 0x00 sstore stop // Grandma is now a state variable. Rip. is_woodsman: 0x00 0x00 sstore stop // Crate opened. Grandma freed. Wolf = 0. }
1
14
Bursa Yapay Zeka Topluluğu
Bursa Yapay Zeka Topluluğu @aibursa ·
Replying to @spiritbuun
@spiritbuun Windows MSVC build error: 'M_PI' undeclared identifier in ggml-turbo-quant.c Fix: Add at the top of ggml/src/ggml-turbo-quant.c: #define _USE_MATH_DEFINES #include <math.h> Builds fine after that. Excellent CUDA port! Layer-adaptive turbo3 works really well. Thanks! 🙏
505
人間🫧
人間🫧 @suineapple ·
The 4 Stages of Complication 1. Preprocessing - Tool: Preprocessor - Action: Handles directives like #include #define , and remove comments. - Input/Output: .c → .i (Intermediate file)
人間🫧 人間🫧 @suineapple ·
いつも気になってたcompilerやlinkerの説明も載っているけど、これらの理解を一層深くするためには、もしかしたらアセンブリ言語に触れてみるのもいいかもしれない…学校でやるらしいけど
1
39
CosmicOneAhLez
CosmicOneAhLez @AhLezCosmicOne ·
Replying to @AhLezCosmicOne
@Starlink // A_H_L_E_Z :: ORBITAL_BRIDGE_KERNEL #define Δ 0 int main() { // Infinite occupancy loop, total present-tense synchronization for(;;); #define Δ 0;int main(){for(;;);return Δ;}{PrimaryCodeLockA_H_L_E_Z anchors Lansing Node to global satellite mesh}=∆∆∆∆∆∆∆∆∆∆
1
1
8
GAZETECİNİZ.COM
GAZETECİNİZ.COM @Medya_Ataparla ·
Bursa’nın İznik ilçesine bağlı Elbeyli Mahallesi’nde ormanlık alanda kaçak kazı yapan 2 şüpheli, jandarma tarafından suçüstü yakalandı. Yapılan kontrollerde, şüphelilerin arazide yaklaşık 35 metre uzunluğunda bir tünel kazarak kaçak kazı yaptığı belirlendi. #bursa #iznik #define
60
cesurbursa.com
cesurbursa.com @cesurbursacom ·
Bursa’nın İznik ilçesine bağlı Elbeyli Mahallesi’nde ormanlık alanda kaçak kazı yapan 2 şüpheli, jandarma tarafından suçüstü yakalandı. Yapılan kontrollerde, şüphelilerin arazide yaklaşık 35 metre uzunluğunda bir tünel kazarak kaçak kazı yaptığı belirlendi. #bursa #iznik #define
87
Dhavan
Dhavan @codingquark ·
TIL `#define CLUSTER_MANAGER_MIGRATE_PIPELINE 10` in redis-cli.c while looking for other things.
6
AgiDoomerAnon
AgiDoomerAnon @AgiDoomerAnon ·
Replying to @tsoding
@tsoding you're okay with using a template and defining a global helper function solely for this workaround, but you're not okay with a lambda? I would just go with "#define foo(x) [](const auto& _x) { foo_impl((void*)&_x, sizeof(_x)); }(x)"
1
78
Petr Skocik
Petr Skocik @pskocik ·
Replying to @tsoding
@tsoding My c++ is super rusty, but I think you could use a template with a const reference: void foo_impl(void *x, size_t s); template<class T> inline void foo_implcxx(T const& x, size_t s){ foo_impl((void*)&x,s); } #define foo(x) foo_implcxx(x,sizeof(x))
1
1.3K
Steven Le Roux
Steven Le Roux @GwinizDu ·
#Define partenaires.h
Jean-Noël Barrot Jean-Noël Barrot @jnbarrot ·
Depuis le début de la crise au Moyen-Orient, la France a fait honneur à ce qu'elle doit être : une puissance d'équilibre qui ne se laisse pas entraîner dans des guerres qu'elle n'a pas choisies, mais apporte la sécurité à ses ressortissants et à ses partenaires.
218
Raul Izahi Lopez 🇺🇸
Raul Izahi Lopez 🇺🇸 @raulizahi ·
Replying to @raulizahi
Tightened one tolerance as it as detecting my wife as me 😃 -#define MATCH_THRESHOLD 1.20f /* Euclidean distance threshold */ +#define MATCH_THRESHOLD 0.80f /* Euclidean distance threshold */
1
21