@@ -35,7 +35,7 @@ constexpr const char* wording_include_subdirs = "include_subdirs";
3535
3636decltype (resource_loader::res_packs)::const_iterator resource_loader::mount_res_pack(const fsif::file& fi)
3737{
38- ASSERT (!fi.is_open ())
38+ utki::assert (!fi.is_open (), SL);
3939
4040 std::string dir = fi.dir ();
4141
@@ -44,7 +44,7 @@ decltype(resource_loader::res_packs)::const_iterator resource_loader::mount_res_
4444 }
4545
4646 auto script = tml::read (fi);
47- ASSERT (!fi.is_open ())
47+ utki::assert (!fi.is_open (), SL);
4848
4949 // handle includes
5050 for (auto & p : script) {
@@ -72,8 +72,7 @@ decltype(resource_loader::res_packs)::const_iterator resource_loader::mount_res_
7272 std::move (script)
7373 );
7474
75- ASSERT (this ->res_packs .back ().fi )
76- ASSERT (!this ->res_packs .back ().script .empty ())
75+ utki::assert (!this ->res_packs .back ().script .empty (), SL);
7776
7877 return std::prev (this ->res_packs .end ());
7978}
@@ -88,7 +87,7 @@ void resource_loader::res_pack_entry::add_to_cache(
8887 std::string_view id
8988) const
9089{
91- ASSERT (!utki::contains (this ->cache , id))
90+ utki::assert (!utki::contains (this ->cache , id), SL);
9291
9392 this ->cache .insert (std::make_pair (
9493 id, //
@@ -117,7 +116,7 @@ const tml::forest* resource_loader::res_pack_entry::find_resource_in_script(std:
117116 id
118117 );
119118 if (j != this ->script .end ()) {
120- ASSERT (j->value .string == id)
119+ utki::assert (j->value .string == id, SL);
121120 return &j->children ;
122121 }
123122
0 commit comments