OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 | 78 |
79 #define BLINK_WEB_IMPLEMENTATION 0 | 79 #define BLINK_WEB_IMPLEMENTATION 0 |
80 #endif | 80 #endif |
81 | 81 |
82 | 82 |
83 // ----------------------------------------------------------------------------- | 83 // ----------------------------------------------------------------------------- |
84 // Basic types | 84 // Basic types |
85 | 85 |
86 #include <stddef.h> // For size_t | 86 #include <stddef.h> // For size_t |
87 | 87 |
88 #if defined(WIN32) | 88 #if defined(WIN32) |
Peter Beverloo
2015/07/08 14:00:22
Removing lines 88-97 and 99 (in a separate patch)
USE s.singapati at gmail.com
2015/07/08 14:39:56
Done. New CL: https://codereview.chromium.org/1223
| |
89 // Visual Studio doesn't have stdint.h. | 89 // Visual Studio doesn't have stdint.h. |
90 typedef unsigned char uint8_t; | |
90 typedef short int16_t; | 91 typedef short int16_t; |
91 typedef unsigned short uint16_t; | 92 typedef unsigned short uint16_t; |
92 typedef int int32_t; | 93 typedef int int32_t; |
93 typedef __int64 int64_t; | 94 typedef __int64 int64_t; |
94 typedef unsigned int uint32_t; | 95 typedef unsigned int uint32_t; |
95 typedef unsigned __int64 uint64_t; | 96 typedef unsigned __int64 uint64_t; |
96 #else | 97 #else |
97 #include <stdint.h> // For int32_t | 98 #include <stdint.h> // For int32_t |
98 #endif | 99 #endif |
99 | 100 |
(...skipping 25 matching lines...) Expand all Loading... | |
125 #else | 126 #else |
126 #define BLINK_ASSERT(assertion) do { \ | 127 #define BLINK_ASSERT(assertion) do { \ |
127 if (!(assertion)) \ | 128 if (!(assertion)) \ |
128 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ | 129 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ |
129 } while (0) | 130 } while (0) |
130 #endif | 131 #endif |
131 | 132 |
132 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) | 133 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) |
133 | 134 |
134 #endif | 135 #endif |
OLD | NEW |