mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

#ifndef

0 posts0 participants0 posts today
zunda<p>そんなこんなで今日はPython 2に書いてたC拡張をPython 3に対応させてあげるバイトをします。</p><p><a href="http://python3porting.com/cextensions.html" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible"></span><span class="">http://python3porting.com/cextensions.html</span><span class="invisible"></span></a></p><p>&gt; Python 2と3の両方に対応するコードを書けるよ!</p><p>お</p><p>&gt; <a href="https://mastodon.zunda.ninja/tags/if" class="mention hashtag" rel="tag">#<span>if</span></a> と <a href="https://mastodon.zunda.ninja/tags/ifndef" class="mention hashtag" rel="tag">#<span>ifndef</span></a> つこてね!</p><p>あ、はい</p>
孤高の冷蔵庫ラヴァー<p><a href="https://social.mikutter.hachune.net/tags/ifndef" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ifndef</span></a> __GCC__<br><a href="https://social.mikutter.hachune.net/tags/error" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>error</span></a> "天罰を受けよ"<br><a href="https://social.mikutter.hachune.net/tags/endif" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>endif</span></a></p>
Sublingual MultimediaThree js chat
まめも<p>Cのヘッダファイルの<br><a href="https://momo.mame.moe/tags/ifndef" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ifndef</span></a> _HOGE_C_<br><a href="https://momo.mame.moe/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> _HOGE_C_</p><p>...</p><p><a href="https://momo.mame.moe/tags/endif" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>endif</span></a> </p><p>ってのあって、これって同時に読み込まれるのを防ぐためらしいけど、なんか苦肉の策的なのが基本ルールっぽくなってる。古い言語だとこういうのもたくさんあって、どこまでを「基本として教えておくこと」に盛り込むのか悩ましいかもだな。</p>
SHIMADA Hirofumiあーここのことか。

他のCソースファイルから参照したい関数プロトタイプとか型とかは.hに出しておいて参照したいソースファイルからinclude "..."するなあ。.hには多重読み込み防止を忘れない

_FOO_H
_FOO_H

void bar(void);

_FOO_H

C++のことはシラナイ…