colorer / Colorer-library

Syntax highlighting and text parsing library
MIT License
22 stars 5 forks source link

Falling on BSD #33

Closed ctapmex closed 4 months ago

ctapmex commented 4 months ago

When running on FreeBSD + clang, the library crashes.

ctapmex commented 4 months ago

The reason for the fall https://github.com/elfmz/far2l/pull/1005

  1. We have some places, where we call hasParent() with 'this' == 0. It is forbidden by C++ standard, and compiler optimizes code based on assumption that 'this' never equals zero. So we cheat compiler with non-inline method, so compiler can not assume that This() != 0.
ctapmex commented 4 months ago

fixed