* added check for size of BTextView

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32442 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2009-08-16 16:46:14 +00:00
parent a5dc8f8639
commit 152c862023
1 changed files with 7 additions and 0 deletions

View File

@ -149,6 +149,13 @@ main(int argc, char **argv)
{
Application app;
const int kExpectedTextViewSize = 356;
if (sizeof(BTextView) != kExpectedTextViewSize) {
fprintf(stderr, "sizeof(BTextView) is %ld instead of %d!\n",
sizeof(BTextView), kExpectedTextViewSize);
return 1;
}
app.Run();
return 0;
}