EGL ファイルでコメント を作成するには、次の方法のいずれかを使用します。
コメントは、以下の例に示すとおり、実行可能文の内側または外側に置くことができます。
/* the assignment e = f occurs if a == b or if c == d */
if (a == b // one comparison
|| /* OR; another comparison */ c == d)
e = f;
end
/* this line starts a comment /* and
this line ends the comment, */
but this line is not inside a comment at all */
最初の 2 つの行のコメントに、2 番目のコメント区切り (/*) が含まれています。 EGL が 3 番目の行をソース・コードとして解釈しようとした場合にのみエラーになります。
以下は有効です。
a = b; /* this line starts a comment // and
this line ends the comment */
最後の例の二重スラッシュ (//) は、それ自体が外側のコメントの一部になっています。