On 10/6/17 5:00 AM, Henri Sivonen wrote:
If we don't have one, how should one be written so that it works in
GCC, clang and MSVC?

Are you OK with it being restricted to a single thread? If so, would something like this work?

  mutable void* taint;
  void* black_box(void* foo) {
    taint = foo;
    return taint;
  }

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to