Skip to content
Snippets Groups Projects

Insta field

Merged Xun Yang requested to merge insta-field into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
272 272 raise Exception("ERROR: Constructor {0} doesn't have the same name as class {1}".format(constructor.name, self.name))
273 273 return
274 274
275 # Calculating the size of objects of this class
276 # Simultaneosly populating the field offset table (since it is necessary for the calcultion of size)
277 def populateSizeAndFieldOffset(self):
278 if hasattr(self, "size"):
279 return
280 self.size = 4 # number of bytes (intialized to 4 since the first item on the object is a vtable pointer)
281 lastFieldOffset = 0
  • Xun Yang added 4 commits

    added 4 commits

    Compare with previous version

  • merged

  • Xun Yang mentioned in commit 8ac9c124

    mentioned in commit 8ac9c124

  • Please register or sign in to reply
    Loading