On Saturday, 22 November 2014 at 16:44:11 UTC, ponce wrote:
A tip to keep in mind when translating C/C++ headers:

---
enum Sass_Tag {
    SASS_BOOLEAN,
    SASS_NUMBER,
    SASS_COLOR
};
---

is best translated as

---

alias Sass_Tag = int;
enum : Sass_Tag {
    SASS_BOOLEAN,
    SASS_NUMBER,
    SASS_COLOR
}
---

That way your enum isn't namespaced.
@ponce, @Mike Parker, thanks for information. Fixed it.

Reply via email to