Rescope raylib.h into raylib::impl namespace
まだ誰も着手していません。
評価
調査の方向性
Start in the raylib-cpp include wrapper and inspect how raylib.h is included, along with the scope operators that refer to its declarations. Check whether the existing extern "C" guards in raylib.h cover the include, then verify that the header can be moved into raylib::impl without global namespace pollution or broken references.
索引モデルが issue の本文から書いたものです。
説明
Currently, the following code is included outside of namespace raylib, which pollutes the global namespace with raylib functions and types which can occasionally cause collisions. Is it possible to move this include into the raylib namespace? Many of the scope operators will have to be adjusted but I think this might result in some cleaner code. Also, I believe that the __cplusplus guards are not necessary when directly including a c header. I think this is typically used around C code that can be compiled by both a c & c++ compiler. The extern "C" is definitely still necessary though. Apologies if I am missing something.
https://isocpp.org/wiki/faq/mixing-c-and-cpp#include-c-hdrs-system
#ifdef __cplusplus
extern "C" {
#endif
#include "raylib.h"
#ifdef __cplusplus
}
#endif
Edit: extern "C" guards are in raylib.h already. It does not appear that it is necessary to include it in raylib-cpp
- 主要言語
- C++
- スター
- 960
- フォーク
- 120
- 平均マージ
- 10分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RobLoach/raylib-cpp のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
RobLoach/raylib-cpp#425 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
RobLoach/raylib-cpp#427 ·
-
Code gen オープン
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
RobLoach/raylib-cpp#415 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
RobLoach/raylib-cpp#370 · コメント 1 件 ·
-
SDF Font Support オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
RobLoach/raylib-cpp#366 · コメント 3 件 ·
RobLoach/raylib-cpp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
brave/brave-browser#59300 ·
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main オープンai_reviewed
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ydb-platform/ydb#53974 · コメント 3 件 ·