• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

polserver / polserver / 28964407401

08 Jul 2026 05:58PM UTC coverage: 61.276% (+0.3%) from 60.927%
28964407401

push

github

web-flow
Split bobject header  (#892)

* splitted bobject header

* fixed runecl

* crashfix

* missing header

* more missing (debug build)

* runecl debug include

* renamed contiter, moved formating

* removed more unused headers

1145 of 1517 new or added lines in 23 files covered. (75.48%)

217 existing lines in 4 files now uncovered.

44972 of 73392 relevant lines covered (61.28%)

557151.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.45
/pol-core/bscript/bobject.cpp
1
/** @file
2
 *
3
 * @par History
4
 * - 2005/11/26 Shinigami: changed "strcmp" into "stricmp" to suppress Script Errors
5
 * - 2008/02/11 Turley:    ObjArray::unpack() will accept zero length Arrays and Erros from
6
 * Array-Elements
7
 * - 2009/09/05 Turley:    Added struct .? and .- as shortcut for .exists() and .erase()
8
 * - 2009/12/21 Turley:    ._method() call fix
9
 */
10

11
#include "bobject.h"
12

13

14
namespace Pol::Bscript
15
{
16

17
Clib::fixed_allocator<sizeof( BObject ), 256> bobject_alloc;
18

19
size_t BObjectRef::sizeEstimate() const
2,379✔
20
{
21
  if ( get() )
2,379✔
22
    return sizeof( BObjectRef ) + get()->sizeEstimate();
2,289✔
23
  return sizeof( BObjectRef );
90✔
24
}
25
size_t BObject::sizeEstimate() const
4,819✔
26
{
27
  if ( objimp.get() )
4,819✔
28
    return sizeof( BObject ) + objimp.get()->sizeEstimate();
4,819✔
NEW
29
  return sizeof( BObject );
×
30
}
31

32
BObject* BObject::clone() const
488✔
33
{
34
  return new BObject( objimp->copy() );
488✔
35
}
36

37
bool BObject::operator!=( const BObject& obj ) const
27,438✔
38
{
39
  return *objimp != *( obj.objimp );
27,438✔
40
}
41
bool BObject::operator==( const BObject& obj ) const
8,141✔
42
{
43
  return *objimp == *( obj.objimp );
8,141✔
44
}
45
bool BObject::operator<( const BObject& obj ) const
8,497✔
46
{
47
  return *objimp < *( obj.objimp );
8,497✔
48
}
49
bool BObject::operator<=( const BObject& obj ) const
803✔
50
{
51
  return *objimp <= *( obj.objimp );
803✔
52
}
53
bool BObject::operator>( const BObject& obj ) const
6,041✔
54
{
55
  return *objimp > *( obj.objimp );
6,041✔
56
}
57
bool BObject::operator>=( const BObject& obj ) const
424✔
58
{
59
  return *objimp >= *( obj.objimp );
424✔
60
}
61
}  // namespace Pol::Bscript
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc