Skip to content

Commit

Permalink
Adding no-op color operators so unhandled platforms can still link.
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanik committed Nov 22, 2015
1 parent e8aa275 commit df2f5a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,21 @@ clr::blue::operator const char*() {
return "";
}

} // namespace libspirv
#else
namespace libspirv {

clr::reset::operator const char*() { return ""; }

clr::grey::operator const char*() { return ""; }

clr::red::operator const char*() { return ""; }

clr::green::operator const char*() { return ""; }

clr::yellow::operator const char*() { return ""; }

clr::blue::operator const char*() { return ""; }

} // namespace libspirv
#endif

0 comments on commit df2f5a1

Please sign in to comment.